Creating a PEM file for the Webitel
The certificate file should be named wss.pem and located in
Создание PEM файла для webitel
Файл с сертификатами должен называться wss.pem и находиться в / opt / webitel / ssl.
ФайлThe wss.pem (по аналогии к сертификатам nginx) состоит из последовательности в строгом порядке file (similar to nginx certificates) consists of a sequence in a strict order: Certificate, RSA Privat Key и and Chain (s):
No Format |
---|
-----BEGIN CERTIFICATE----- <cert> -----END CERTIFICATE----- -----BEGIN RSA PRIVATE KEY----- <key> -----END RSA PRIVATE KEY----- -----BEGIN CERTIFICATE----- <chain> -----END CERTIFICATE----- |
Копируем Copy wss.pem его еще в файлыpem to the files:
- tls.pem - для for SIP TLS
- dtls-srtp.pem - для for WebRTC
Code Block |
---|
cp wss.pem tls.pem cp wss.pem dtls-srtp.pem |
Необходимые файлы в Required files in /opt/webitel/ssl:
Code Block |
---|
ssl ├── dtls-srtp.pem ├── tls.pem └── wss.pem |
...
Connect the certificate to the webitel
В файле In the env/environment изменить на file, change to:
Code Block | ||||
---|---|---|---|---|
| ||||
# WebSocket protocol: ws or wss (WebSocket with SSL) export WEBITEL_WS="wss" # WebSocket protocol: off or on (for HTTPS) export WEBITEL_SSL="on" # WebSocket protocol: http or https export WEBITEL_PROTO="https" # Webitel IP or hostname. # Please, use the FQDN hostname for HTTPS site export WEBITEL_HOST="app-d1.webitel.com" |
Перезапускаем webitelRestart the Webitel:
Code Block |
---|
/opt/orchestration/bin/reboot.sh |
You can check the output of the nginx log with the commandПроверить вывод лога nginx можете с помощью команды:
Code Block | ||||
---|---|---|---|---|
| ||||
$ docker logs nginx Start SSL |
...