You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im trying to connect to a Google Cloud Platform MySQL instance with SSL enabled using a public IP. However I get the error:
Error: Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: IP: xx.xx.xxx.xx is not in the cert's list
If I set reject unauthorised to false it works correctly.
There is no way to add the IP to the altnames because Google generates the certificates automatically. I also can't connect to the instance using a hostname because that isn't supported by Google. I've tried adding checkServerIdentity: () => null to the ssl options but get the same results. Is there any secure work around to this?
The text was updated successfully, but these errors were encountered:
Im trying to connect to a Google Cloud Platform MySQL instance with SSL enabled using a public IP. However I get the error:
If I set reject unauthorised to false it works correctly.
There is no way to add the IP to the altnames because Google generates the certificates automatically. I also can't connect to the instance using a hostname because that isn't supported by Google. I've tried adding
checkServerIdentity: () => null
to the ssl options but get the same results. Is there any secure work around to this?The text was updated successfully, but these errors were encountered: