« 画像ペーストでデータURL取得の骨組み | メイン | SnappyでPDF »
2018年11月12日
無料鍵
centos6
# yum install -y epel-release
# curl https://dl.eff.org/certbot-auto -o /usr/bin/certbot-auto
# chmod a+x /usr/bin/certbot-auto
# certbot-auto --os-packages-only --non-interactive
centos7
# yum install epel-release
# yum install certbot python-certbot-apache
# certbot certonly --webroot -w /var/www/htmldir/ -d www.example.jp
複数ドメインの場合は
#certbot certonly --webroot -w /var/www/example/ -d www.example.com -d example.com -w /var/www/other -d other.example.net -d another.other.example.net
/etc/letsencrypt/live/[発行したサーバーのドメイン]/ 内に作成
SSLCertificateFile /etc/letsencrypt/live/[サーバーのドメイン]/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/[サーバーのドメイン]/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/[サーバーのドメイン]/chain.pem
投稿者 muuming : 2018年11月12日 09:08