I am trying to get a custom domain linked to my Google App Engine project and am completely stuck - it will just not work.
I am trying to do everything through Google - I have no third-party domain registrars or anything.
I have purchased a domain myapp.app
through Google Domains, and linked it to my App Engine app through AppEngine settings.
When I go to App Engine -> Settings -> Custom Domains, my custom domain shows as "Google-managed, auto-renewing" in the SSL security tab, and it shows a progress loader which when hovered, says "The certificate is being activated."
It doesn't show anything in certificate ID.
However, on the troubleshooting section at https://cloud.google.com/appengine/docs/flexible/java/securing-custom-domains-with-ssl#troubleshooting_managed_ssl_certificates it says "You can check the status of your certificate with the Admin API by using an AuthorizedCertificate.GET request." I don't know what ID to pass to that API, but if I go to the neighbouring LIST API, I get some valid json, that looks like this:
{
"certificates": [
{
"name": "apps/myapp/authorizedCertificates/16858526",
"id": "16858526",
"displayName": "managed_certificate",
"domainNames": [
"mydomain.app"
],
"managedCertificate": {
"lastRenewalTime": "1970-01-01T00:00:00Z"
}
}
]
}
(substituted 'myapp' and 'mydomain')
My custom domain ends with .app - and apparently they ONLY allow SSL. Have I bitten off more than I can chew here by introducing a chicken and egg situation - is it trying to verify the domain in order to set up the SSL, but the domain itself needs SSL from the start in order to work?
I am slightly confused about whether I need to enter the DNS records settings shown in the App Engine settings section below into Google Domains, or whether because I have left it on the "Use the Google Domains nameservers" setting this is configured automatically for me? There is a section at the bottom called "Custom resource records" where you can enter A records. I tried entering the "A" records shown on the Google App Engine settings section below, but it would only let me enter 1, and there are 4 showing. It was my understanding that a domain could only have 1 A record, so why does it list 4 in the App Engine Settings section?
I am unsure as to what the primary problem is here. Is the domain not working because the SSL certificate is not configured correctly, or is the SSL certificate not working because the domain is not configured correctly?
Any ideas what I am missing or where to go from here or things to check much appreciated.