SSL & client config.

Поиск
Список
Период
Сортировка
Искать

SSL & client config.

От:
"devAng@libero.it" <devAng@libero.it>
Дата:
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.

От:
"Albe Laurenz" <laurenz.albe@wien.gv.at>
Дата:
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
FAQ