SOLVED : Privacy error with custom domain and github pages
Pritesh Usadadiya

Pritesh Usadadiya @priteshusadadiya

About: Performance Engineer 🔥 | agile tester | 💡 Improving Products | 🔦 searching for 🐞 bugs | Love Coding in spare time 💻

Location:
https://softwaretestingnotes.com
Joined:
Feb 2, 2019

SOLVED : Privacy error with custom domain and github pages

Publish Date: Feb 10 '19
9 7

Hi everyone,

I'm trying to host my hugo website on github with the custom subdomain https://www.priteshusadadiya.com results in

Your connection is not private

When i remove https from url then it results in a website without bootstrap styling.

I followed github's troubleshooting guide but no luck.

Here is DNS A records.

185.199.108.153
185.199.109.153
185.199.110.153
185.199.111.153

I have also added one CNAME record

www CNAME priteshusadadiya.com

I have also tried removing and re-adding my custom domain to the repository, still no luck.

Repo : https://github.com/priteshusadadiya/priteshusadadiya.github.io

Tried searching for solution on stackoverflow and github issues but coudn't find any. Can anyone please help me debug this ?

Thanks,
Pritesh


Update

Finally figured it out what was wrong with my DNS Configuration ?

The problem was that i had created a sub-domain WWW which was pointing to the apex (Main) domain priteshusadadiya.com

CNAME record

www CNAME   priteshusadadiya.com

Enter fullscreen mode Exit fullscreen mode

All i had to do is make it point to the priteshusadadiya.github.io

CNAME record

www CNAME   priteshusadadiya.github.io

Enter fullscreen mode Exit fullscreen mode

and it worked. 🙌

Comments 7 total

  • xelaflash
    xelaflashFeb 10, 2019

    Not sure about your issue but on my side under the CNAME (in my domain provider config) i have :

    githubusername.github.io.
    

    And i remember that it took around a day for Github to generate the https certificate.

  • Pritesh Usadadiya
    Pritesh UsadadiyaFeb 11, 2019

    That seems like the general rule for githhub pages. Error that i was receiving has been changed.

    At first the error was "not in compliance with custom domain format" i was not able Enforce HTTPS

    Now message has changed to "Please allow 24 hours for this process to complete."

  • Keric28
    Keric28Aug 2, 2019

    I've been banging my head on this for a while now. Finally found this thread makes me believe I may just need to wait.

    I know the thread is okd, just hoping you can confirm for me.
    GitHub is setup with custom domain.
    Namecheap I have configured with a records to the 4 ips.
    GitHub works with https but I'm getting githubs cert from digicert and not one for my site. Are you saying I just need to wait for the cert to generate?

    • Pritesh Usadadiya
      Pritesh UsadadiyaAug 2, 2019

      Hi! @keric28

      Normally it takes about 24 hours for github to generate certificate for the given domain.

      However, you might also want to check for your domains record. As in my case i had created sub domain WWW and pointed to the apex (main) domain. if you are doing something similar then make sure to point it to your *.github.io

      • Keric28
        Keric28Aug 2, 2019

        Yep, had checked that, thanks.

        Time heals all wounds. And apparently GitHub pages cert errors. It's working :)

Add comment