How HTTPS and WebRTC are connected

Alina Krukova
July 2, 2019
Alina Krukova

To enable users actively participate in TrueConf Server conferences via WebRTC application, you need to set up HTTPS connection on the server and open UDP ports beforehand. Otherwise, users will only be able to attend your conference passively.

If the connection is not safe (HTTP), your guests will see a warning upon opening TrueConf Server or conference webpage from their browser.

HTTPS connection is essential for syncing TrueConf Server when connecting to TrueConf Directory. Please read our blog post for more details.

How to set up HTTPS connection

You will need SSL certificate file in X.509 (*.сrt) format and a corresponding private key (*.key).

There are two types of certificates: commercial and self-signed.

Self-signed certificate is free. You can generate this certificate for TrueConf Server by yourself from the control panel. The certificate is valid for 365 days (and prolonged further without limits). It can be used for WebRTC application testing. However, each conference participant should manually add it to the trust list in their browser.

Trusted certificate is fully functional and secured. However, this certificate is paid. Here’s where you can get it:

How to use trusted certificate in TrueConf Server

Before you buy SSL certificate make sure your TrueConf Server is accessible by its domain name (e.g. from the internet. Domain name and server name given during TrueConf Server registration must be the same.

Open TrueConf Server control panel and choose Use custom certificate in Web→ HTTPS section (HTTPS configuration).

Enter the HTTPS port that can be accessed from the internet in the field that appears. By default standard TCP Port 443 is used.

After that upload certificate and its key files to the corresponding fields of Custom certificate block.

During the download process certificate format, key format and certificate/key correspondence are checked. If at least one check fails then added certificate and key files will not be saved.

After the files have been uploaded, added certificate notification will appear.

How to create self-signed certificate

Open TrueConf Server control panel, proceed to Web → HTTPS section and press Create new SSL certificate button.

When this certificate expires, you can generate a new one.

Check TrueConf Server configuration once the certificate has been installed

Incorrect port data or certificate parameters may result in TrueConf Server launch issues next time, and your administrator might lose access to the server control panel.  

You can initiate HTTPS server configuration without restarting it by pressing Test Configuration button (Web→ HTTPS→HTTPS Configuration in TrueConf Server control panel).

If your certificate is installed correctly (HTTPS port must also be accessible) you will see The configuration has been successfully tested string. 

Press Apply after you’ve tested the configuration. Server service will be restarted.

If you have problems with configuration testing, please contact our technical support.

If you don’t need to use HTTPS connection you can also disable it in the corresponding control panel section.

Sign up for newsletter