Различия
Показаны различия между двумя версиями страницы.
Следующая версия | Предыдущая версия | ||
server:ssl [2018/05/22 00:31] – создано mirocow | server:ssl [2019/09/26 10:57] (текущий) – [Автоматическая генерация и обновление сертификата SSL (certbot)] mirocow | ||
---|---|---|---|
Строка 1: | Строка 1: | ||
- | ====== SSL ====== | + | ====== |
* https:// | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
+ | ===== Установка ===== | ||
+ | |||
+ | ==== Debian ==== | ||
+ | |||
+ | <code bash> | ||
+ | $ apt install python-pip | ||
+ | $ pip install setuptools | ||
+ | $ wget https:// | ||
+ | $ chmod 0775 ./ | ||
+ | $ bash ./ | ||
+ | </ | ||
+ | |||
+ | ==== CentOS ==== | ||
+ | |||
+ | <code bash> | ||
+ | $ yum --enablerepo=extras install epel-release | ||
+ | $ yum -y install python-pip | ||
+ | $ pip install setuptools | ||
+ | $ wget https:// | ||
+ | $ chmod 0775 ./ | ||
+ | $ bash ./ | ||
+ | </ | ||
+ | ===== Автоматический перевыпуск сертификата ===== | ||
+ | |||
+ | nano /etc/rontab | ||
+ | <code bash> | ||
+ | # Recreate SSL certificates | ||
+ | 1 * * */1 * certbot renew --dry-run | ||
+ | </ | ||
+ | ===== Ошибки ===== | ||
+ | |||
+ | При возникновении ошибки **The value ' | ||
+ | Необходимо: | ||
+ | |||
+ | * Установить тестовый репозиторий **deb http:// | ||
+ | * Обновить списки пакетов | ||
+ | * Затем установить генератор **python-certbot-nginx** (возможно предварительно понадобится обновить пакеты **apt upgrade**) | ||
+ | * Запустить генерацию **certbot --authenticator webroot --installer nginx** | ||
+ | * Настроить автообновление по крону **rootcertbot renew --dry-run** | ||
+ | |||
+ | <code bash> | ||
+ | $ echo "deb http:// | ||
+ | $ apt update | ||
+ | $ apt-get install python-certbot-nginx | ||
+ | $ certbot --authenticator webroot --installer nginx | ||
+ | $ echo "1 * * */1 * rootcertbot renew --dry-run" | ||
+ | </ | ||
+ | |||
+ | ===== Документация ===== | ||
+ | |||
+ | * https:// |