Thread: SSL & client config.

SSL & client config.

From
"devAng@libero.it"
Date:
Hi,
I am trying to setup a client JDBC with SSL, use the guide  http://jdbc.
postgresql.org/documentation/80/ssl-client.html

make the server certificate
available to Java

openssl x509 -in server.crt -out server.crt.der -outform
der

get  server.crt.der


follow

keytool -keystore
$JAVA_HOME/lib/security/cacerts -alias postgresql -import -file server.crt.der


error : Keystore was tampered with, or password was incorrect ?

But the
password is correct!!!!!!!!

I'm confused help-me please.



Ps:  Postgresql
from shell with SSL works.


Re: SSL & client config.

From
"Albe Laurenz"
Date:
devAng wrote:
> keytool -keystore 
> $JAVA_HOME/lib/security/cacerts -alias postgresql -import -file server.crt.der
> 
> 
> error : Keystore was tampered with, or password was incorrect ?
> 
> But the 
> password is correct!!!!!!!!
> 
> I'm confused help-me please.

Could it be that you mix up the password of the certificate and the
password of the Java key store?

http://java.sun.com/javase/6/docs/technotes/tools/solaris/keytool.html

Yours,
Laurenz Albe