Skip to content

Instantly share code, notes, and snippets.

@printminion
Created June 3, 2016 19:39
Show Gist options
  • Save printminion/6ec2fc0fefaba8e0a98a63a6d73b0802 to your computer and use it in GitHub Desktop.
Save printminion/6ec2fc0fefaba8e0a98a63a6d73b0802 to your computer and use it in GitHub Desktop.

Revisions

  1. printminion revised this gist Jun 3, 2016. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion certbot-renew.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@
    #!/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
  2. printminion created this gist Jun 3, 2016.
    10 changes: 10 additions & 0 deletions certbot-renew.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    #!/bin/bash
    #
    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