I'm trying to use GCP's cloud_proxy_sql
via one of our proxy server with custom CA signed certificates. I tried setting the cert using the config custom_ca_certs_file
of gcloud config
. Also double checked if the ca cert is set, using the command gcloud config list
.
In spite of that, getting the below error in cloud_proxy_sql
when trying to connect my SQL client via cloud_proxy_sql
.
2020/08/19 11:37:36 Listening on 0.0.0.0:<My local port> for <Instance_connnection_name>
2020/08/19 11:37:36 Ready for new connections 2020/08/19 11:39:11 New connection for "<Instance_connnection_name>"
2020/08/19 11:39:12 couldn't connect to "<Instance_connnection_name>": x509: certificate signed by unknown authority
2020/08/19 11:40:08 Received TERM signal. Waiting up to 0s before terminating.
It seems like cloud_proxy_sql
is not respecting the CA cert in gcloud
config. How to configure the cert for cloud_proxy_sql
?