pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedSSL & client config.
3+ messages / 2 participants
[nested] [flat]
* SSL & client config.
@ 2009-07-15 09:46 devAng@libero.it <devAng@libero.it>
0 siblings, 1 reply; 3+ messages in thread
From: devAng@libero.it @ 2009-07-15 09:46 UTC (permalink / raw)
To: pgsql-jdbc
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.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: SSL & client config.
@ 2009-07-15 13:57 Albe Laurenz <laurenz.albe@wien.gv.at>
parent: devAng@libero.it <devAng@libero.it>
0 siblings, 0 replies; 3+ messages in thread
From: Albe Laurenz @ 2009-07-15 13:57 UTC (permalink / raw)
To: devAng@libero.it; pgsql-jdbc
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: SSL & client config.
@ 2009-07-16 11:44 Albe Laurenz <laurenz.albe@wien.gv.at>
0 siblings, 0 replies; 3+ messages in thread
From: Albe Laurenz @ 2009-07-16 11:44 UTC (permalink / raw)
To: devAng@libero.it; pgsql-jdbc
devAng wrote:
> there are the step :
> >openssl req -new -text -out server.req
>
> enter PEM
> pass phrase: mypassword
> verifying enter PEM pass : mypassword
> ..
[...]
> Import this certificate into Java's system
> truststore
>
>
> >keytool -keystore $JAVA_HOME/lib/security/cacerts -alias
> postgresql -import -file c:/Openssl/bin/server.crt.der
>
> password of keystore:
> mypassword
>
>
> Error keytool: java.io.IOException: Keystore was tampered
> with, or password was incorrect.
>
> where is the error ? I'm confused.
The way it looks to me, the error is that "mypassword" is not the password
of your Java key store. It is the password for your private key.
Yours,
Laurenz Albe
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2009-07-16 11:44 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-07-15 09:46 SSL & client config. devAng@libero.it <devAng@libero.it>
2009-07-15 13:57 ` Albe Laurenz <laurenz.albe@wien.gv.at>
2009-07-16 11:44 Re: SSL & client config. Albe Laurenz <laurenz.albe@wien.gv.at>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox