Fork me on GitHub
#sql
<
2022-07-07
>
vemv11:07:56

Anyone have experience connecting to postgresql with SSL certs rather than a password? This approach https://stackoverflow.com/questions/52335780/connection-to-google-cloud-postgresql-via-jdbc-with-ssl (also documented here https://jdbc.postgresql.org/documentation/head/ssl-client.html) seems on the right track. I followed the openssl x509 -outform der -in server-ca.pem -out server-ca.der step, but later I get a java.io.IOException: extra data given to DerValue constructor

vemv14:07:59

I got it and archived it here https://archive.ph/wip/e1ZAo (the SO answers were useless in comparison)