Skip to content

Instantly share code, notes, and snippets.

@anthony-curtis
anthony-curtis / aws-lets-encrypt-guide.md
Last active July 9, 2019 14:32
AWS Lightsail with Automatically Renewing Let's Encrypt SSL

Automatically Renewing Let's Encrypt SSL on AWS Lightsail

The Amazon Lightsail documentation walks through the creation of a wildcard SSL certificate using Let's Encrypt. Unfortunately, the final step of the tutorial says to manually renew your certificate every 90 days.

What if you want to have it renew automatically?

If you try to run the certbot renew command via a cron job it will fail. The wildcard certificate validation process requires a change to your DNS records and this is not something certbot handles out-of-the-box.

You have a few options to create an automated solution:

@anthony-curtis
anthony-curtis / localtestIISExpress.md
Last active June 15, 2017 01:56
How to Configure localtest.me subdomain with IIS Express

How to Configure localtest.me subdomain with IIS Express

Want to host a local dev site from a custom subdomain using the localtest.me approach? Follow these steps on your Windows machine to get up and running.

  1. Locate your ApplicationHost.config file in \Users\YourName\Documents\IISExpress\config

  2. Make a copy in case you need to revert changes

  3. Open the file in your favorite text editor and scroll to <sites> which will be around line 155.

  4. Add a new <site> element below the default example. Use the code below as a template: