https無料認証certbot,Let's Encrypt


Certbotのインストール
$ sudo apt-get update
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:certbot/certbot
$ sudo apt-get update
$ sudo apt-get install python-certbot-apache 
$ sudo certbot certonly \ --manual \ --preferred-challenges 
dns \ -d "*.josns.net" -d "josns.net"
テストの更新
$ certbot renew --dry-run
実際の更新
$ certbot renew
証明書の有効期限の検証
$ certbot certificates
証明書の更新
毎月1日午後6時に証明書を更新します
$ 0 18 1 * * /usr/bin/certbot renew --renew-hook="sudo service nginx restart"