Godaddy + cloudflare + github pages: looking for last missing piece to make HTTPS work

ssl
dns

#1

Hey there folks,

I’m currently trying to set up a jekyll blog using github pages with a custom domain and cloudflare for SSL/HTTPS support.
I read a bunch of blogs and I feel like I did everything described in them.

Whether it is:

Nevertheless I’m having trouble making it work and I’m not sure why…

tl;dr of what I did:

  • added a CNAME file to my git repo
  • changed godaddys default dns nameservers to the cloudflare ones
  • having 2 A records and one CNAME record present here in cloudflare (just like in the blogs)
  • Under the Crypto tab I got: Status: Active Certificate

Actual problem

When trying to visit mydomain.com I’m only getting this:

This site cannot be loaded due to a certificate error: https://mydomain.com
net::ERR_CERT_COMMON_NAME_INVALID
Issued To
Common Name (CN): *.github.com

As far as I understand it it still tries to use the valid cert for the username.github.io pages or am I mistaken here?
I’m not sure where I did go wrong any.
Anyone having an idea?


#2

Set your SSL mode to ‘full’, or if that doesn’t work try ‘flexible’.


#3

Based on this bit “Common Name (CN): *.github.com” I would say it looks like your root record in our DNS is not :orange:. If it were hitting the Cloudflare edge I woudl expect to see a Cloudflare issued cert with your zone name.


#4

apparently the only problem was that the SSL needs to be set at flexibel.

Not Full nor Full (Strict). That’s the only way it works for me now.
All the guides insisted on putting it on Full…

Cheerios


#5

Full should work since github was presenting it’s SSL cert… but sometimes the internet is Abby Normal.


#6

I’ll look further into it within the next days… Maybe I’ll get it to work with Full.
It seems to work for other people so why not for me too :joy:


#7

This topic was automatically closed after 14 days. New replies are no longer allowed.