Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id A7137635BB8 for ; Thu, 16 Jul 2009 06:25:34 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 97005-03-3 for ; Thu, 16 Jul 2009 06:25:24 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from cp-out2.libero.it (cp-out2.libero.it [212.52.84.102]) by mail.postgresql.org (Postfix) with ESMTP id 53190633DAF for ; Thu, 16 Jul 2009 06:24:10 -0300 (ADT) Received: from wmail10.libero.it (172.31.0.79) by cp-out2.libero.it (8.5.107) id 4A5B230100320278; Thu, 16 Jul 2009 11:24:07 +0200 Message-ID: <29725999.97981247736247132.JavaMail.defaultUser@defaultHost> Date: Thu, 16 Jul 2009 11:24:07 +0200 (CEST) From: "devAng@libero.it" Reply-To: "devAng@libero.it" To: , Subject: R: Re: SSL & client config. MIME-Version: 1.0 Content-Type: text/plain;charset="UTF-8" Content-Transfer-Encoding: 7bit X-SenderIP: 85.44.178.19 X-Priority: 2 (High) Importance: high X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200907/37 X-Sequence-Number: 19805 HI, there are the step : >openssl req -new -text -out server.req enter PEM pass phrase: mypassword verifying enter PEM pass : mypassword .. Country name (2 letter code) : .... .. . ...... Common Name : computer name ... a challenge password []: empty (no password, simple return) output is: server.req. follow >openssl rsa -in privkey.pem -out server.key enter pass phrase for prikey.PEM: mypassword output is: server.key follow: >openssl req -x509 -in server.req -text -key server.key -out server.crt output is: server.crt To make the server certificate available to Java follow: >openssl x509 -in server.crt -out server.crt.der -outform der output is: server.crt.der 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. HELP. openssl >----Messaggio originale---- >Da: laurenz. albe@wien.gv.at >Data: 15/07/2009 15.57 >A: , >Ogg: Re: [JDBC] SSL & client config. > >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 > >-- >Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) >To make changes to your subscription: >http://www.postgresql.org/mailpref/pgsql-jdbc >