Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Warning

Данный сертификат больше не поддерживаться основными браузерами.

Документ описывает процесс подключения бесплатного SSL сертификата полученного на сайте www.startssl.com

...

Заказывать сертификат будем хоста app-d1.webitel.com. 

  1. Переходим в директорию /opt/webitel/certsssl
  2. Создаем приватный ключ:

    Code Block
    openssl genrsa -out wss.key 2048

  3. Создаем запрос сертификата: 

    Code Block
    openssl req -new -sha256 -key wss.key -out wss.csr

...

  1. В полученном архиве можно увидеть несколько готовых примеров под разное ПО. Нам подойдет Apache:

    Code Block
    app-d1.webitel.com
    ├── Apache\ Server
    │   ├── 1_root_bundle.crt
    │   └── 2_app-d1.webitel.com.crt
    ├── Apache\ Server.zip
    ├── IIS\ Server.zip
    ├── Nginx\ Server.zip
    └── Other\ Server.zip


  2. Файлы 1_root_bundle.crt и 2_app-d1.webitel.com.crt копируем на сервер webitel в директорию /opt/webitel/certsssl
  3. Создаем PEM файл:

    Code Block
    cat 2_app-d1.webitel.com.crt wss.key 1_root_bundle.crt > wss.pem
    cp wss.pem tls.pem
    cp wss.pem dtls-srtp.pem


  4. Результат в /opt/webitel/certsssl:

    Code Block
    certs
    ├── 1_root_bundle.crt
    ├── 2_app-d1.webitel.com.crt
    ├── dtls-srtp.pem
    ├── tls.pem
    ├── wss.csr
    ├── wss.key
    └── wss.pem


Подключение сертификата к webitel

  1. В файле common.env изменить /environment изменить на:

    Code Block
    languagebash
    themeMidnight
    SSL=true# 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"

Похожие статьи

Content by Label
showLabelsfalse
max5
spacesWKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("ssl","linux","webitel2","wss") and type = "page" and space = "WKB"
labelswebitel2 ssl wss linux

Page properties
hiddentrue


Related issues