I am trying to follow the steps in the following document to create a certificate using Certificate Manager:
I have a query regarding "Add the CNAME record to your DNS configuration"
createTime: '2024-08-25T03:26:07.788998638Z'
managed:
authorizationAttemptInfo:
- domain: <domain>
state: AUTHORIZING
dnsAuthorizations:
- projects/xxxxx/locations/global/dnsAuthorizations/test-dns-auth
domains:
- <domain>
state: PROVISIONING
name: projects/<project>/locations/global/certificates/test-cert
sanDnsnames:
- <domain>
updateTime: '2024-08-25T03:26:08.245783381Z'
After some time, i got the message that the authorization has failed:
createTime: '2024-08-25T03:26:07.788998638Z'
managed:
authorizationAttemptInfo:
- domain: <domain>
failureReason: CONFIG
state: FAILED
dnsAuthorizations:
- projects/xxxxxxxx/locations/global/dnsAuthorizations/test-dns-auth
domains:
- <domain>
provisioningIssue:
reason: AUTHORIZATION_ISSUE
state: PROVISIONING
name: projects/<project>/locations/global/certificates/test-cert
sanDnsnames:
- <domain>
updateTime: '2024-08-25T03:26:08.245783381Z'
Where am i going wrong here.
Hi @mountaincode2,
Welcome to Google Cloud Community!
It appears you encountered an issue during authorization. In the message, authorizationAttemptInfo is showing failureReason: CONFIG. This means that there was an issue with your DNS or load balancer configuration. This prevents the Managed Certificate from being issued.
It is best to review your DNS or load balancer configuration for your domain and try again. Please note that you will have to delete and create a new managed certificate resource to try again.
Please refer to the following troubleshooting pages below for more guidance:
Hope this helps.
A crucial part of troubleshooting this issue would be to verify if the dns record you created in your dns zone is publicly resolvable. Try to resolve it from your system (using nslookup or dig or host or ping) or online with one of the services like dnschecker and see if the name (_acme-challenge....) resolved to that long string ending in goog.
Hi @AI :
i checked in the console and there is the following, however, it is not ending in `goog`:
What do i need to look for please. can you break it down for me.
what is the value for that record? that's what usually ends with ".goog."
Go to dnschecker, edit the name of the record (copy the name of the record from Cloud DNS to avoid mistakes) and click Search to verify if the record is publicly resolvable.
https://dnschecker.org/#CNAME/_acme-challenge.yourdomain.com.
In DNS checker, i see that the record is publicly resolvable.
and i am able to see that the certificate is active now as well.
But there is one thing that is eluding my understanding and that is in the following step why am i adding the CNAME record to the DNS zone in Cloud DNS. Shouldn't i also add it to my records in Hostinger from whom i purchased the domain.