title: Google App Engine SSL error "DNS records could not be found" even though custom domain is working
body: <p>I pointed a new custom domain to a Google App Engine Standard Environment project and edited the DNS records per Google's instructions, and it seems to be redirected properly. Now I'm under the impression that SSL certificates for App Engine projects can now be provided automatically by Let's Encrypt and do not necessarily need to be supplied by the user separately: <a href="https://cloud.google.com/appengine/docs/standard/go/securing-custom-domains-with-ssl" rel="noreferrer">https://cloud.google.com/appengine/docs/standard/go/securing-custom-domains-with-ssl</a></p>
  
  <p>However, I'm having problem getting the SSL security service from Google. The error message in the App Engine console is: 
      DNS records could not be found. Certificate activation will retry automatically.</p>
  
  <p>This error message looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/AcMGL.png" rel="noreferrer"><img src="https://i.stack.imgur.com/AcMGL.png" alt="enter image description here"></a></p>
  
  <p>If I type <code>gcloud beta app domain-mappings list</code>, I get something that looks like this:</p>
  
  <pre><code>ID                    SSL_CERTIFICATE_ID  SSL_MANAGEMENT_TYPE  PENDING_AUTO_CERT
  mydomain.com                              AUTOMATIC            1256789
  www.mydomain.com      1234567             AUTOMATIC
  </code></pre>
  
  <p>I also tried "Disable managed security" and turn it back on by "Enable managed security", and get the same result after some minutes: "Managed certificate for www.mydomain.com activated." shows up, but not for mydomain.com. </p>
  
  <p>If I go to www.mydomain.com with its supposedly activated certificate, I still get "connection is not secure" in the browser. If I go to "mydomain.com" it gets redirected to www.mydomain.com with the same result.</p>
  
  <p>Any ideas?</p>
  
  <p>Update: I just tried getting my own keys using Certbot and uploaded them to GAE. GAE showed a Certificate ID for both mydomain.com and www.mydomain.com. However I had to manually type "https" in the browser to get to the secure page. I found that I had to add "secure: always" in app.yaml before the domain will load the secure version by default. I still don't know why Google's default managed security option didn't work for me though; that would be much more convenient than getting and uploading my own scripts every 3 months.</p>