Generate and Install a Let's Encrypt SSL Certificate for a Bitnami Application

redmineのカーネルはDebian 9 (Stretch)

sudo su


apt -y update
apt -y -t stretch-backports install certbot
cd /tmp
curl -s | grep browser_download_url | grep linux_amd64 | cut -d '"' -f 4 | wget -i -

tar xf lego_linux_amd64.tar.xz

mv lego_linux_amd64 /usr/local/bin/lego

sudo /opt/bitnami/ stop
sudo lego --email="EMAIL-ADDRESS" --domains="DOMAIN" --path="/etc/lego" run


mv /opt/bitnami/apache2/conf/server.crt /opt/bitnami/apache2/conf/server.crt.old
mv /opt/bitnami/apache2/conf/server.key /opt/bitnami/apache2/conf/server.key.old
mv /opt/bitnami/apache2/conf/server.csr /opt/bitnami/apache2/conf/server.csr.old

copy file

ln -s /etc/lego/certificates/ドメイン名.key /opt/bitnami/apache2/conf/server.key
ln -s /etc/lego/certificates/ドメイン名.crt /opt/bitnami/apache2/conf/server.crt


chown root:root /opt/bitnami/apache2/conf/server*
chmod 600 /opt/bitnami/apache2/conf/server*

Step 5: Renew The Let's Encrypt Certificate

/opt/bitnami/ stop
lego --email="EMAIL-ADDRESS" --domains="DOMAIN" --path="/etc/lego" renew
/opt/bitnami/ start
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.