Skip to content

Instantly share code, notes, and snippets.

@paul-hammant
Forked from printminion/certbot-renew.sh
Created October 10, 2017 23:21
Show Gist options
  • Save paul-hammant/8e8365d7cc008236f0c2ac5fa37b3d3d to your computer and use it in GitHub Desktop.
Save paul-hammant/8e8365d7cc008236f0c2ac5fa37b3d3d to your computer and use it in GitHub Desktop.
renew ssl letsencrypt certificate on bitnami server
#!/bin/bash
#renew ssl letsencrypt certificate on bitnami server
#https://gist.github.com/printminion/6ec2fc0fefaba8e0a98a63a6d73b0802/edit
sudo /opt/bitnami/ctlscript.sh stop apache
cd /home/user/certbot
#./certbot-auto certonly --standalone -w /opt/bitnami/apache2/conf/ -d example
.com -d www.example.com
./certbot-auto renew
sudo cp /etc/letsencrypt/live/example.com/fullchain.pem /opt/bitnami/apache2/conf/server.crt
sudo cp /etc/letsencrypt/live/example.com/privkey.pem /opt/bitnami/apache2/conf/server.key
sudo /opt/bitnami/ctlscript.sh start apache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment