GitHub Pages Over HTTPS

Using HTTPS for your site has lots of benefits. Chief among them being security. Using HTTPS ensures that no one can intercept and read traffic between you and the site you’re visiting.

However, it’s traditionally been somewhat difficult and expensive to provide HTTPS for your sites visitors. Now though, with Let’s Encrypt an SSL certificate is free! And if you’re using GitHub pages with a custom domain for hosting using it couldn’t be easier.

All you have to do is set up your custom domain to point to your GitHub pages site, and then update the settings on your repo to look like mine:

GitHub Pages Settings

If, like me, you’re already using a custom domain on GitHub pages then you have to follow these simple steps to enable HTTPS:

  1. Remove your custom domain and save
  2. Re-add your custom domain and save again
  3. The “Enforce HTTPS” checkbox should now be enabled

Now you really don’t have an excuse to NOT be using HTTPS!

Aaron Crowder avatar
About Aaron Crowder
Husband, Father, Software Developer. In that order.
comments powered by Disqus