証明書の更新
1 |
$ sudo /usr/bin/certbot renew |
apache2の再起動
1 |
$ sudo systemctl restart httpd |
1 |
$ sudo /usr/bin/certbot renew |
1 |
$ sudo systemctl restart httpd |
AndroidのWebブラウザからアクセスするとTLS(SSL)中間証明書エラーが発生する
Apache2の設定ミス(設定漏れ)
/etc/httpd/conf.d/ssl.conf
を編集する
1 2 3 4 5 6 7 |
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5:+3DES:!RC4 SSLCertificateFile /etc/letsencrypt/live/chihayafuru.jp/cert.pem SSLCertificateKeyFile /etc/letsencrypt/live/chihayafuru.jp/privkey.pem SSLCertificateChainFile /etc/letsencrypt/live/chihayafuru.jp/chain.pem |
AWSのEC2(Amazon Linux)において、Let’s Encryptの証明書更新がImportErrorで失敗する
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
$ /usr/local/letsencrypt/certbot-auto renew Creating virtual environment... Installing Python packages... Installation succeeded. Requesting root privileges to run certbot... /home/ec2-user/.local/share/letsencrypt/bin/letsencrypt renew Traceback (most recent call last): File "/home/ec2-user/.local/share/letsencrypt/bin/letsencrypt", line 7, in <module> from certbot.main import main File "/home/ec2-user/.local/share/letsencrypt/local/lib/python2.7/dist-packages/certbot/main.py", line 12, in <module> import zope.component File "/home/ec2-user/.local/share/letsencrypt/local/lib/python2.7/dist-packages/zope/component/__init__.py", line 16, in <module> from zope.interface import Interface ImportError: No module named interface |
以下は2017年12月現在の過去の情報です。
2021年1月以降 "certbot-auto" は非推奨(非サポート)となっています。
1 2 3 4 5 6 |
$ sudo /usr/local/bin/certbot-auto --dru-run renew Your system is not supported by certbot-auto anymore. certbot-auto and its Certbot installation will no longer receive updates. You will not receive any bug fixes including those fixing server compatibility or security problems. Please visit https://certbot.eff.org/ to check for other alternatives. |
1 2 3 |
$ cd /usr/local/bin $ sudo wget https://dl.eff.org/certbot-auto $ sudo chmod a+x certbot-auto |
1 2 |
$ cd /usr/local $ sudo git clone https://github.com/certbot/certbot |
1 |
https://github.com/letsencrypt/letsencrypt |