GitLab Pages site won't get LetsEncrypt certificate

I am trying to get both www.kevinbreit.net and kevinbreit.net to go to the same GitLab Pages site with LetsEncrypt. www is working fine but I’m having problems getting LetsEncrypt to issue a certificate for kevinbreit.net.

The domain is verified. I keep getting the error of “Something went wrong while obtaining the Let’s Encrypt certificate.” Here is output from DNS showing the configuration. Note, it’s not letting me create a CNAME for it since it’s @.

❯ dig kevinbreit.net TXT +short
"_gitlab-pages-verification-code.kevinbreit.net TXT gitlab-pages-verification-code=a791617b517be340da075b0b00792428"
"v=spf1 include:spf.messagingengine.com ?all"
❯ dig kevinbreit.net A +short

~
❯ dig kevinbreit.net AAAA +short

~
❯
❯ dig kevinbreit.net CNAME +short

~

Update. I found the documentation talking about using the root domain (GitLab Pages custom domains | GitLab Docs). This required the A and AAAA records to be created and that fixed it.

1 Like