Connect a Google CloudSQL Postgres database to Data Studio

前端 未结 2 800
野趣味
野趣味 2021-02-04 16:24

I am trying to connect a Postgres database hosted in a google Cloud Sql instance to Data Studio. I have followed the instructions (found here https://support.google.com/datastu

相关标签:
2条回答
  • 2021-02-04 16:47

    Eventually it turns out that just changing the format of the client key works. The reason the above didn't work was that the command to change the format was wrong.

    It should be:

    openssl pkcs8 -topk8 -inform PEM -outform PEM -in client-key.pem -out client-key.key -nocrypt
    

    (notice the PEM instead of DER parameter that is posted in the question).

    So Data Studio connection works! Happy days!

    0 讨论(0)
  • 2021-02-04 16:55

    (On getting the certs in the first place)

    If you're using a GCP Cloud Postgres connection like here:

    1. Go to your GCP Console -> SQL
    2. Click into your DB instance -> Connections
    3. Scroll down to "Configure SSL client certificates"
    4. Click "create a client certificate", give it a name, and download the outputs
    0 讨论(0)
提交回复
热议问题