とりあえずBitnamiのWordpressをSSL化するのは少しだけ面倒くさかった。

sudo apt-get install certbot python-certbot-apache
sudo certbot certonly --webroot -w /opt/bitnami/apps/wordpress/htdocs/ -d ドメイン
sudo cp /etc/letsencrypt/live/ドメイン/fullchain.pem /opt/bitnami/apache2/conf/server.crt
sudo cp /etc/letsencrypt/live/ドメイン/privkey.pem /opt/bitnami/apache2/conf/server.key
sudo /opt/bitnami/ctlscript.sh restart apache

次は証明書を三か月ごとに自動更新するようにセットしないといけないね。

Posted in

コメントを残す