Saturday, March 10, 2018

[google-cloud-sql-discuss] Re: couldn't connect to INSTANCE : x509: certificate has expired or is not yet valid

Hello,

It seems your SSL certificate is invalid. You may want to view expiration date of your SSL certificate (both server and client) under SSL configuration by Getting information about your server certificate.  You can create a new certificate if server certificate expires by following the same documentation. You should refresh your server certificate before it expires to ensure that your clients can connect to the instance securely.

Similarly, you can manage your client certificate as described in the same documentation.  

I hope it helps?

Regards,

On Saturday, March 10, 2018 at 1:03:16 PM UTC-5, Mirror Mirage0 wrote:
Hi, I have been struggling with this error for past several hours. Any help would be appreciated.

Running on Lubuntu VM.
gcloud is installed, authenticated, lists the project, gives description of database. starts listening

q@q-VirtualBox:~/Desktop/q$ ./cloud_sql_proxy -instances="q:a:q2"=tcp:3306
2018/03/10 07:05:20 Listening on 127.0.0.1:3306 for q:a:q2
2018/03/10 07:05:20 Ready for new connections
2018/03/10 07:05:30 New connection for "q:a:q2"
2018/03/10 07:05:37 couldn't connect to "q:a:q2": x509: certificate has expired or is not yet valid

Please help

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/55d7d005-bd30-4a20-a227-cbb22438b594%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment