Custom domains on GitHub Pages gain support for HTTPS
blog.github.com
blog.github.com
I'm looking at a website on which I have Cloudflare enabled and my certificate is being shared with about 24 other domains. For somebody that knows what HTTPS is about and what it protects against, that's not acceptable. We only accepted it because we find it as being a reasonable compromise given the alternative.
So why isn't Cloudflare generating Lets Encrypt certificates, instead of these shared ones? Given their fast response in pursuing other endeavors, my guess is that they need incentives for people to move to their business plans.
Therefore I'm glad that GitHub Pages can have HTTPS enabled for custom domains. It means I can now turn off CloudFlare.
I'm so glad in fact that I started paying GitHub for a $7 account, even though I don't currently have a need for private repos.
Also you can get a dedicated certificate on the free plan for $5/month.
I maintain 5 websites hosted on 5 different domains (blog in English, blog in native language and 3 project websites). The cost of 5 certificates would be $300 per year, or $25 per month.
Right now I'm paying $0 for the certificates of those 5 domains, thanks to Lets Encrypt.
I've been hosting them myself on a Digital Ocean VPS, with really low maintenance, since the machine is updating itself and the websites get built and deployed via Travis. Now I'm moving them to GitHub Pages and my hosting cost will also be zero.
You can also host on github pages while using Cloudflare for the custom domain, which is already the most common setup on github for several years now.
> You can also host on github pages while using Cloudflare for the custom domain, which is already the most common setup on github for several years now.
Yes, because GitHub Pages was not offering HTTPS for custom domains. Now they do, so that need is gone.
Security is absolutely not an issue with a shared certificate and Cloudflare wouldn't get far as a company if they had an insecure product. Why don't you actually explain what you think is so problematic about sharing a cert?
The private keys are never given to you, or other sites. It is all within Cloudflare’s edge.
Your connection is not secure / Your connection is not private
Error code: SSL_ERROR_BAD_CERT_DOMAIN (Firefox)
NET::ERR_CERT_COMMON_NAME_INVALID (Chrome)
Trying adding the A records as described here:
https://help.github.com/articles/setting-up-an-apex-domain/
Will update if that works..
After I've set the A records, I removed the custom domain from GitHub's Settings and then re-added it.
It started working afterwards.
That means that with https enabled it is no longer pssible to have the apex and www form of a custom domain work simultaneously at a GitHub page! One needs to decide for one or the other.
As a workaround it was suggested to me to create a CNAME record from www to apex at the domain hoster. This, however, will not work for those of us who want to have it the other way around, that is, the apex pointing to the www form of the domain.
I was told that GitHub might consider other solutions in the future.
However, https://mydomain.com and https://www.mydomain.com have different SSL certificates. Is this supposed to happen? I assumed that the apex is just a forward to the www subdomain.
185.199.108.153 185.199.109.153 185.199.110.153 185.199.111.153
From: https://help.github.com/articles/setting-up-an-apex-domain/
EDIT: You’ll also need to remove and re-add the domain in the repository settings after doing that too to trigger it to request a cert.
If it’s still not working after that the you can contact support and they can press a button on the back end to trigger a cert request.
[0]: https://www.blog.google/topics/developers/introducing-app-mo...
Googles announcement is much more along the lines of Progressive Web Apps (PWA) and Service Workers which require HTTPS [2].
[1]: https://github.com/isaacs/github/issues/156
[2]: https://developers.google.com/web/progressive-web-apps/check...
I moved my repo to GitLab pages after Google announced it would prioritise sites that support HTTPS in its search results.
Even if only 1% of users were unable to access a site after the switch to HTTPS, the amount of calls to Github support would be massive.