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
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!
(On getting the certs in the first place)
If you're using a GCP Cloud Postgres connection like here: