Skip to content

Instantly share code, notes, and snippets.

@matiullah31
Forked from HarshadRanganathan/letsencrypt
Created March 18, 2021 06:28
Show Gist options
  • Save matiullah31/28d8c9eba9f7cbad8bc2b565c2ebeab2 to your computer and use it in GitHub Desktop.
Save matiullah31/28d8c9eba9f7cbad8bc2b565c2ebeab2 to your computer and use it in GitHub Desktop.

Revisions

  1. @HarshadRanganathan HarshadRanganathan revised this gist May 12, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion letsencrypt
    Original file line number Diff line number Diff line change
    @@ -14,6 +14,6 @@ https://www.ssllabs.com/ssltest/analyze.html?d=app.com
    # Configure cron job for SSL auto-renewal
    sudo crontab -e

    # Add below line in crontab to check for certificate renewals periodically
    # Add below lines in crontab to check for certificate renewals periodically
    PATH = /home/ec2-user/:/usr/local/sbin:/usr/local/bin:/bin:/usr/sbin:/usr/bin
    0 6 * * * certbot-auto renew --text >> /home/ec2-user/certbot-cron.log
  2. @HarshadRanganathan HarshadRanganathan revised this gist May 12, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion letsencrypt
    Original file line number Diff line number Diff line change
    @@ -14,6 +14,6 @@ https://www.ssllabs.com/ssltest/analyze.html?d=app.com
    # Configure cron job for SSL auto-renewal
    sudo crontab -e

    # Add below line in crontab
    # Add below line in crontab to check for certificate renewals periodically
    PATH = /home/ec2-user/:/usr/local/sbin:/usr/local/bin:/bin:/usr/sbin:/usr/bin
    0 6 * * * certbot-auto renew --text >> /home/ec2-user/certbot-cron.log
  3. @HarshadRanganathan HarshadRanganathan revised this gist May 12, 2020. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion letsencrypt
    Original file line number Diff line number Diff line change
    @@ -15,4 +15,5 @@ https://www.ssllabs.com/ssltest/analyze.html?d=app.com
    sudo crontab -e

    # Add below line in crontab
    0 6 * * * /home/ec2-user/certbot-auto renew --text >> /home/ec2-user/certbot-cron.log
    PATH = /home/ec2-user/:/usr/local/sbin:/usr/local/bin:/bin:/usr/sbin:/usr/bin
    0 6 * * * certbot-auto renew --text >> /home/ec2-user/certbot-cron.log
  4. @HarshadRanganathan HarshadRanganathan revised this gist Nov 4, 2018. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions letsencrypt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    # Install wget
    yum install wget -y

    # Install certbot-auto
    wget https://dl.eff.org/certbot-auto
    chmod a+x certbot-auto
  5. @HarshadRanganathan HarshadRanganathan revised this gist Jun 14, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion letsencrypt
    Original file line number Diff line number Diff line change
    @@ -12,4 +12,4 @@ https://www.ssllabs.com/ssltest/analyze.html?d=app.com
    sudo crontab -e

    # Add below line in crontab
    0 6 * * * /home/ec2-user/certbot-auto renew --text >> /home/ec2-user/certbot-auto/certbot-cron.log
    0 6 * * * /home/ec2-user/certbot-auto renew --text >> /home/ec2-user/certbot-cron.log
  6. @HarshadRanganathan HarshadRanganathan created this gist Feb 19, 2018.
    15 changes: 15 additions & 0 deletions letsencrypt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    # Install certbot-auto
    wget https://dl.eff.org/certbot-auto
    chmod a+x certbot-auto

    # Obtain SSL certificate with Nginx plugin for the domain
    sudo ./certbot-auto --nginx -d app.com --debug

    # Test SSL configuration
    https://www.ssllabs.com/ssltest/analyze.html?d=app.com

    # Configure cron job for SSL auto-renewal
    sudo crontab -e

    # Add below line in crontab
    0 6 * * * /home/ec2-user/certbot-auto renew --text >> /home/ec2-user/certbot-auto/certbot-cron.log