VestaCP - устанавливаем LET’S ENCRYPT сертификат

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Перейти к:навигация, поиск

Доступная цена

VestaCP - устанавливаем LET’S ENCRYPT сертификат

CentOS 6:

#  yum install git -y && cd /usr/local
# git clone https://github.com/letsencrypt/letsencrypt.git
# git clone https://github.com/interbrite/letsencrypt-vesta.git 
# git clone https://github.com/certbot/certbot.git
# mkdir -p /etc/letsencrypt/webroot
# ln -s /usr/local/letsencrypt-vesta/letsencrypt.conf /etc/httpd/conf.d/letsencrypt.conf
# ln -s /usr/local/letsencrypt/letsencrypt-auto /usr/local/bin/letsencrypt-auto
# ln -s /usr/local/letsencrypt-vesta/letsencrypt-vesta /usr/local/bin/letsencrypt-vesta
# service httpd restart


# letsencrypt-vesta admin domain.xyz


Ошибка:
/usr/local/bin/letsencrypt-vesta: line 226: /usr/local/certbot/certbot-auto: No such file or directory
Let's Encrypt returned an error status. Aborting.

Решается командой:

# git clone https://github.com/certbot/certbot.git



Ошибка Error: LetsEncrypt account registration 400

Не активируется сертификат в самой панеле ошибкой:

# v-add-letsencrypt-domain admin domain.com
/usr/local/vesta/bin/v-add-letsencrypt-user: line 62: xxd: command not found
/usr/local/vesta/bin/v-add-letsencrypt-user: line 66: xxd: command not found
Error: LetsEncrypt account registration 400
sed: can't read /usr/local/vesta/data/queue/letsencrypt.pipe: No such file or directory


решение:

1) Доустановить пакет vim-common

# yum install vim-common

2) Заменить переменную agreement

# vi +44  /usr/local/vesta/bin/v-add-letsencrypt-user
agreement='https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf'




Сертификаты обновляются автоматически через задание cron для admin:

# crontab -l -u admin | grep lets
15 4 * * * sudo /usr/local/vesta/bin/v-update-letsencrypt-ssl
Индекс цитирования