letsencryptをcronで定期的に更新するようにした。
我が家はubuntuが動いていて
h20 -> apache2 -> unicornの構成になっています。
こんなスクリプトを書いてchmod +xして
#! /bin/bash /etc/init.d/h2o stop /etc/init.d/apache2 stop cd /path/to/letsencrypt/ ./letsencrypt-auto certonly --standalone --email example@gmail.com --domain example.com --renew-by-default /etc/init.d/apache2 start /etc/init.d/h2o start
crontabを2ヶ月おきにすれば大丈夫だとおもう
0 0 1 */2 * /path/to/update_https.sh >> /path/to/update_https.log 2>&1
以上。