Running Certbot on Bitnami Apache Server - Extra Steps Needed

Thanks for the reply, I found the solution and have installed on 2 domains so far. Here it is, hope this helps the next guy.

This came straight from Bitnami Docs: https://docs.bitnami.com/google/components/apache/

Install Git - SSH into Server: sudo apt-get install git
Change to temp directory: cd /tmp
Clone the Certbot client repository from Github: git clone https://github.com/certbot/certbot
Change to cerbot directory: cd certbot
Use the certbot-auto script to download and install all the necessary dependencies: ./certbot-auto
The certbot-auto script will download all the necessary dependencies and also request root privileges to run the client.
Request a new certificate for your domain as below.
Remember to replace the DOMAIN placeholder with your actual domain name, and the APPNAME placeholder with the path to your application. ./certbot-auto certonly --webroot -w /opt/bitnami/apps/APPNAME/htdocs/ -d DOMAIN
Copy your SSL certificate and certificate key file to the correct locations.
Remember to replace the DOMAIN placeholder with your actual domain name.
sudo cp /etc/letsencrypt/live/DOMAIN/fullchain.pem /opt/bitnami/apache2/conf/server.crt
sudo cp /etc/letsencrypt/live/DOMAIN/privkey.pem /opt/bitnami/apache2/conf/server.key
Restart the Apache server: sudo /opt/bitnami/ctlscript.sh restart apache
Done

1 Like