SSL Certificate Renew for BITNAMI Server

ssl certficate

SSL Certificate Renew for BITNAMI Server

SSL Certificate Renew for BITNAMI Server
-----------------------------------------------------------------

Comment Out Default Bitnami SSL Configuration

Backup the Configuration File (Optional):

sudo cp /opt/bitnami/apache2/conf/bitnami/bitnami-ssl.conf /opt/bitnami/apache2/conf/bitnami/bitnami-ssl.conf.backup

Edit the bitnami-ssl.conf File:

sudo nano /opt/bitnami/apache2/conf/bitnami/bitnami-ssl.conf

Comment Out the SSL Configuration:

Locate the SSL-related configuration lines within and . Comment out these lines by adding a # at the beginning of each line.

Example:

# # DocumentRoot "/opt/bitnami/apache2/htdocs" # SSLEngine on # SSLCertificateFile "/opt/bitnami/apache2/conf/server.crt" # SSLCertificateKeyFile "/opt/bitnami/apache2/conf/server.key" # ... #

Save and Close the File:

Press Ctrl + O to save changes, then press Enter. Press Ctrl + X to exit nano.

Restart Apache:

sudo /opt/bitnami/ctlscript.sh restart apache

Renew the Let's Encrypt Certificate

Renew the Let's Encrypt Certificate:

sudo /opt/bitnami/letsencrypt/lego --path="/opt/bitnami/letsencrypt" --email="your_email@example.com" --domains="your_domain.com" renew

Restart Apache:

sudo /opt/bitnami/ctlscript.sh restart apache

Verify Renewal:

sudo /opt/bitnami/letsencrypt/lego --path="/opt/bitnami/letsencrypt" list

Automation (Optional):

sudo crontab -e

Add a line to run the renewal command, for example, every month:

0 0 1 * * /opt/bitnami/letsencrypt/lego --path="/opt/bitnami/letsencrypt" --email="your_email@example.com" --domains="your_domain.com" renew && sudo /opt/bitnami/ctlscript.sh restart apache

Save the file and exit the editor.

What's Your Reaction?

like

dislike

love

funny

angry

sad

wow