On 2/7/24 06:42, just madhu wrote: > On further investigation, > /With certificate generated as below. JDBC connection is successful./ > openssl pkcs8 -topk8 -inform PEM -in client.key -outform DER -out > client.pk8 -passout pass:foobar / -v1 PBE-MD5-DES > > But a connection from pgAdmin (connection failed: > \SSLCerts\pk8_pass\client_pass_PBE.pk8": no start line) and psql(psql: > error: could not load private key file "client_pass_PBE.pk8": > unsupported) is failing > > Is there a common way in which certificate with passwords can be > created for both libpq and jdbc ?
You may want to check with the pgjdbc project on github rather than (or in addition to?) here; see: