I have the following situation with my website https://www.domain.com works fine but https://domain.com can’t establish a secure connection.
I have a google managed certificate whit the following hostnames domain.com and *.domain.com.
In the Domain Provider I have A records for @ to point to and * to point to .
In the Load Balancer a default 301 redirect rule to www.domain.com is set.
I am not sure what am I missing here in order for the http://domain.com and https://domain.com to work as well.
Thank you.
Hi @razvan_todea ,
This is challenging to troubleshoot without more visibility of what you’re trying to achieve but here are some steps you can check to troubleshoot the issue.
-
Make sure that the certificate status and the domain status are in ACTIVE status.
You can check the status of your certificate by running the following command:
gcloud compute ssl-certificates describe \
--global \
--format="get(managed.domainStatus)"
-
Update your load balancer as the Google-managed SSL certificate must be associated with the load balancer.
-
Verify the the target proxy association between the SSL certificate and the target proxy.
-
Make sure you update the DNS A and AAA records to your load balancer’s IP address.
You can check this documentation for your reference.
I hope you find this information useful.
The certificate manager was used to generate the certificate and in the certificate map the default rule for the domain was not specified, once I added
{
name : “default-certificate-map-entry”,
description : “Default certificate map entry”,
host : “”
} in the TF file, everything started to work.