Ivan Kolmychek's blog

home about tags feed

HTTPS for site on GitHub Pages with custom domain

04 Feb 2017

I’ve been using github.io subdomain for a blog for some time. That’s because if you attach custom domain to GitHub Pages site then trying to visit it over HTTPS will produce an error.

That’s because GitHub Pages use certificate issued for *.github.io, and not for your custom domain, which is pretty logical.

So, how can you combine GitHub Pages, custom domain and still get working HTTPS?

CloudFlare to the rescue!

You can sign up for the free CloudFlare plan, put your custom domain through it and let the CloudFlare terminate the SSL.

For this you need:

And you’re set up.

So, as you probably already noticed, I’ve tested this myself so far and now this blog is available as https://ivan.kolmychek.name.