Arch Linux証明書を自動生成# pacman -S certbot-nginxUbuntu# apt install certbotRedHat 7.3$ wget https://dl.eff.org/certbot-auto $ chmod +x certbot-auto $ ./certbot-autoUbuntu 14.04# apt install letsencryptCentOS 6.9$ letsencrypt certonly --webroot -w /var/www -d aaa.ekzemplaro.org$ sudo yum install epel-release $ wget https://dl.eff.org/certbot-auto $ chmod +x certbot-auto $ ./certbot-auto
certbot certonly --webroot -w /var/www -d ekzemplaro.org --email aaa@ekzemplaro.org結果
/etc/apache2/sites-available/default-ssl.confIMPORTANT NOTES: - Congratulations! Your certificate and chain have been saved at /etc/letsencrypt/live/ekzemplaro.org/fullchain.pem. Your cert will expire on 2017-06-15. To obtain a new or tweaked version of this certificate in the future, simply run certbot again. To non-interactively renew *all* of your certificates, run "certbot renew" - Your account credentials have been saved in your Certbot configuration directory at /etc/letsencrypt. You should make a secure backup of this folder now. This configuration directory will also contain certificates and private keys obtained by Certbot so making regular backups of this folder is ideal. - If you like Certbot, please consider supporting our work by: Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate Donating to EFF: https://eff.org/donate-le
モジュールをロード# SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem # SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key SSLCertificateFile /etc/letsencrypt/live/www.ekzemplaro.org/cert.pem SSLCertificateKeyFile /etc/letsencrypt/live/www.ekzemplaro.org/privkey.pem SSLCertificateChainFile /etc/letsencrypt/live/www.ekzemplaro.org/chain.pem
# a2enmod ssl再起動
# a2ensite default-ssl
# systemctl restart apache2アクセス
https://ekzemplaro.orgテスト
SSL Server TestCentOS 6.9
/etc/httpd/conf.d/ssl.conf # service httpd restartCentOS 7.4
# yum install certbot certbot-apache # sudo firewall-cmd --add-port=443/tcp --zone=public # sudo firewall-cmd --add-port=443/tcp --zone=public --permanent # sudo certbot run --apache -d example.com