Skip to content

Instantly share code, notes, and snippets.

@eiichi-worker
Last active October 15, 2018 07:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eiichi-worker/4e30619ce28ceded89482b3b0976f8e8 to your computer and use it in GitHub Desktop.
Save eiichi-worker/4e30619ce28ceded89482b3b0976f8e8 to your computer and use it in GitHub Desktop.
[ブログ済み]Let's Encrypt 設定手順

Let's Encrypt 設定手順 http://qiita.com/MashMorgan/items/56498f276c54406b1928

www.example.comだとして

certbot-auto certonly --webroot -w /data/www.example.com -d www.example.com --email webmaster@example.com --debug

↑で証明書発行されるので、Apacheなりに設定する

  • -w webroot
  • -d ドメイン
  • --email 連絡先

CRONで自動更新を仕掛けておく sudo vi /etc/cron.d/update-letsencrypt

00 19 10 * * root certbot-auto renew --force-renew && service httpd restart
@eiichi-worker
Copy link
Author

Bitnami Redmine 3.4.6-0

 sudo /opt/bitnami/ctlscript.sh restart apache

cron

00 19 10 * * root   /opt/bitnami/ctlscript.sh stop apache; /usr/bin/certbot renew --force-renew; /opt/bitnami/ctlscript.sh restart apache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment