Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQaLS-00016z-EH for pgsql-jdbc@arkaria.postgresql.org; Tue, 14 May 2019 16:32:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hQaLR-0006ki-5T for pgsql-jdbc@arkaria.postgresql.org; Tue, 14 May 2019 16:32:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQaLQ-0006kb-Qn for pgsql-jdbc@lists.postgresql.org; Tue, 14 May 2019 16:32:00 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQaLN-0001UU-Fh for pgsql-jdbc@lists.postgresql.org; Tue, 14 May 2019 16:32:00 +0000 Received: by mail-pl1-x644.google.com with SMTP id y3so8527432plp.0 for ; Tue, 14 May 2019 09:31:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=2t2apnxCRih8D4WZrjbbgy4W/NigBrSTIGfHi82p+do=; b=syb183N/snavjkp91Nk9O4DNMrwdJRUozwZy39bhqzDtN3E+aY7gJZaoKy3eaRr3th bQlIMMa3ayy8kRyWMemk4uRGbElO0kPWbZJGvdJxopnGSQ5y+9xvYsyLO1wPNFwKhm+x qfyuiFg9DbecycdxTYAuxfiMwUXJGFaV+olf+35WB1CFKRxknbMDHPqRKY6gMeRQiM7t NgUmWUpNNlW6hnfEd3A2EVnhK/J9pmrqTrtOSt4c+OsEY7Pz/L3TwUH4U5+arxaTtkTO 6y/liGBAJVYgBkalNcpf2ZUB6jympPnrMsZXH0rLXgE/kUrEa/+hAhIvj2OU6Qf8rE/w FXsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=2t2apnxCRih8D4WZrjbbgy4W/NigBrSTIGfHi82p+do=; b=CrMI0T1ufkjtbJS2+rNMcLsp7wbuK5OHsak16dG3f3GMqMeyilNP6auf09cz7MYjPL d3aXob9g08aVpxjkVoySWqWH0qkBpadNXpP8RDfjbQwUuQQG+GfQ2PqKsYfH7mCNYp4V G4aPfa/CghxbthcxpWNH5ikLzEQK6mFMqNK9CKEVXM6SpEVMf7E5w5m77RQ9ztygMj2g n05FZ3cBxAUUgky6bDB+AqTAis34uF4YFzamjn2JY8iXsfN76L8aGcQfMOXY4ZKlGGUT l6Iq3mFTssxf8spFo4xHGr4Awf4rfAk83kSafgJ1xLfx+hY4ddFJGqezSTGaPSgQ8/kZ otXA== X-Gm-Message-State: APjAAAV7ARFk7Kyl6bYrepQj4EtEMyJOkOtzLt4Y3wSuCQ9EVfWi/B83 EjsmUatpBH58ly0BM+ET6jU2r/ns X-Google-Smtp-Source: APXvYqxSvFZbUrSl7GJ7+8FByAgCineGJdHEyLGOU+me05RBoqsdFRwI11wlYm3DDUtSCFDZQ4OtjA== X-Received: by 2002:a17:902:8b8a:: with SMTP id ay10mr30438386plb.74.1557851513422; Tue, 14 May 2019 09:31:53 -0700 (PDT) Received: from [10.104.134.41] ([155.100.47.1]) by smtp.gmail.com with ESMTPSA id 10sm20912924pfh.14.2019.05.14.09.31.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 May 2019 09:31:52 -0700 (PDT) Subject: Re: SSL connection issue with JDBC To: pgsql-jdbc@lists.postgresql.org References: From: Rob Sargent Message-ID: <2d9ac944-ab26-b4dd-0a95-49507ba3208f@gmail.com> Date: Tue, 14 May 2019 10:31:51 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------0ED6031FD660DF9215D73D37" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------0ED6031FD660DF9215D73D37 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit On 5/14/19 6:35 AM, Anupkumar Seth wrote: > > Hi, > > Details required:- > > *_JDBC driver build number:-_* postgresql-9.1-903.jdbc4 > > *_Server version:-_* PostgreSQL 11.2 (Ubuntu 11.2-1.pgdg16.04+1) on > x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) > 5.4.0 20160609, 64-bit > > *_Exact error message and stacktrace:- _* > > org.postgresql.util.PSQLException: The connection attempt failed. > >                 at > org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:150) > >                 at > org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:64) > >                 at > org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc2Connection.java:123) > >                 at > org.postgresql.jdbc3.AbstractJdbc3Connection.(AbstractJdbc3Connection.java:28) > >                 at > org.postgresql.jdbc3g.AbstractJdbc3gConnection.(AbstractJdbc3gConnection.java:20) > >                 at > org.postgresql.jdbc4.AbstractJdbc4Connection.(AbstractJdbc4Connection.java:30) > >                 at > org.postgresql.jdbc4.Jdbc4Connection.(Jdbc4Connection.java:22) > >                 at org.postgresql.Driver.makeConnection(Driver.java:391) > >                 at org.postgresql.Driver.connect(Driver.java:265) > >                 at > java.sql.DriverManager.getConnection(DriverManager.java:675) > >                 at > java.sql.DriverManager.getConnection(DriverManager.java:219) > >                 at com.utility.PostgresSSL.main(PostgresSSL.java:24) > > Caused by: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: > PKIX path building failed: > java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl > could not build a valid CertPath.; internal cause is: > > java.security.cert.CertPathValidatorException: The certificate issued > by CN=certificate-authority is not trusted; internal cause is: > > java.security.cert.CertPathValidatorException: Certificate chaining error > >                 at com.ibm.jsse2.j.a(j.java:12) > >                 at com.ibm.jsse2.as.a(as.java:118) > >                 at com.ibm.jsse2.C.a(C.java:193) > >                 at com.ibm.jsse2.C.a(C.java:245) > >                 at com.ibm.jsse2.D.a(D.java:242) > >                 at com.ibm.jsse2.D.a(D.java:56) > >                 at com.ibm.jsse2.C.r(C.java:69) > >                 at com.ibm.jsse2.C.a(C.java:580) > >                 at com.ibm.jsse2.as.a(as.java:512) > >                 at com.ibm.jsse2.as.i(as.java:969) > >                 at com.ibm.jsse2.as.a(as.java:176) > >                 at com.ibm.jsse2.h.write(h.java:36) > >                 at > java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:93) > >                 at > java.io.BufferedOutputStream.flush(BufferedOutputStream.java:151) > >                 at org.postgresql.core.PGStream.flush(PGStream.java:521) > >                 at > org.postgresql.core.v3.ConnectionFactoryImpl.sendStartupPacket(ConnectionFactoryImpl.java:257) > >                 at > org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:103) > >                 ... 11 more > > Caused by: com.ibm.jsse2.util.h: PKIX path building failed: > java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl > could not build a valid CertPath.; internal cause is: > > java.security.cert.CertPathValidatorException: The certificate issued > by CN=certificate-authority is not trusted; internal cause is: > > java.security.cert.CertPathValidatorException: Certificate chaining error > >                 at com.ibm.jsse2.util.f.a(f.java:35) > >                 at com.ibm.jsse2.util.f.b(f.java:96) > >                 at com.ibm.jsse2.util.e.a(e.java:19) > >                 at com.ibm.jsse2.aA.a(aA.java:132) > >                 at com.ibm.jsse2.aA.a(aA.java:39) > >                 at com.ibm.jsse2.aA.checkServerTrusted(aA.java:27) > >                 at com.ibm.jsse2.D.a(D.java:110) > >                 ... 23 more > > Caused by: java.security.cert.CertPathBuilderException: > PKIXCertPathBuilderImpl could not build a valid CertPath.; internal > cause is: > > java.security.cert.CertPathValidatorException: The certificate issued > by CN=certificate-authority is not trusted; internal cause is: > > java.security.cert.CertPathValidatorException: Certificate chaining error > >                 at > com.ibm.security.cert.PKIXCertPathBuilderImpl.engineBuild(PKIXCertPathBuilderImpl.java:422) > >                 at > java.security.cert.CertPathBuilder.build(CertPathBuilder.java:268) > >                 at com.ibm.jsse2.util.f.a(f.java:49) > >                 ... 29 more > > Caused by: java.security.cert.CertPathValidatorException: The > certificate issued by CN=certificate-authority is not trusted; > internal cause is: > > java.security.cert.CertPathValidatorException: Certificate chaining error > >                 at > com.ibm.security.cert.BasicChecker.(BasicChecker.java:111) > >                 at > com.ibm.security.cert.PKIXCertPathValidatorImpl.engineValidate(PKIXCertPathValidatorImpl.java:199) > >                 at > com.ibm.security.cert.PKIXCertPathBuilderImpl.myValidator(PKIXCertPathBuilderImpl.java:749) > >                 at > com.ibm.security.cert.PKIXCertPathBuilderImpl.buildCertPath(PKIXCertPathBuilderImpl.java:661) > >                 at > com.ibm.security.cert.PKIXCertPathBuilderImpl.buildCertPath(PKIXCertPathBuilderImpl.java:607) > >                 at > com.ibm.security.cert.PKIXCertPathBuilderImpl.engineBuild(PKIXCertPathBuilderImpl.java:368) > >                 ... 31 more > > Caused by: java.security.cert.CertPathValidatorException: Certificate > chaining error > >                 at > com.ibm.security.cert.CertPathUtil.findIssuer(CertPathUtil.java:316) > >                 at > com.ibm.security.cert.BasicChecker.(BasicChecker.java:108) > >                 ... 36 more > > *_What you were doing, ideally in code form:- _* > > We are working on Connecting to Postgresql database via SSL through > Java JDBC. We are not able to establish SSL connection, but non SSL > connection is working. Postgresql SSL server has been set up at our > end and if we connect to it using pgAdmin4 client we are able to > connect to it via SSL but the same is not working in JAVA using JDBC. > > In the jave program if we provide the connection string parameter > ("sslfactory", "org.postgresql.ssl.NonValidatingFactory"), this > property will ignore the certificate validation and connect via SSL, > but we want to connect with passing certificates only. > > If we try to run the program with certificates in the parameter we get > error as posted above. > > Code:- > > String url = "jdbc:postgresql://:5432/postgres"; > >                                 Properties props = new Properties(); > > props.setProperty("user","postgres"); > > props.setProperty("password","temp4now"); > > props.setProperty("ssl","true"); > > props.setProperty("sslcert", > "C:\\Users\\user1\\Desktop\\postgresSsl\\client\\postgresql.crt"); > > props.setProperty("sslkey", > "C:\\Users\\user1\\Desktop\\postgresSsl\\client\\postgresql.key"); > > props.setProperty("sslrootcert", > "C:\\Users\\user1\\Desktop\\postgresSsl\\client\\root.crt"); > >   Connection conn = DriverManager.getConnection(url, props); > > If I use *_latest JDBC postgrsql driver "postgresql-42.2.5"_* then I > get below error. > > org.postgresql.util.PSQLException: SSL error: Received fatal alert: > unexpected_message > >                 at org.postgresql.ssl.MakeSSL.convert(MakeSSL.java:42) > >                 at > org.postgresql.core.v3.ConnectionFactoryImpl.enableSSL(ConnectionFactoryImpl.java:435) > >                 at > org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:94) > >                 at > org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:192) > >                 at > org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49) > >                 at > org.postgresql.jdbc.PgConnection.(PgConnection.java:195) > >                 at org.postgresql.Driver.makeConnection(Driver.java:454) > >                 at org.postgresql.Driver.connect(Driver.java:256) > >                 at > java.sql.DriverManager.getConnection(DriverManager.java:675) > >                 at > java.sql.DriverManager.getConnection(DriverManager.java:219) > >                 at com.utility.PostgresSSL.main(PostgresSSL.java:23) > > Caused by: javax.net.ssl.SSLException: Received fatal alert: > unexpected_message > >                 at com.ibm.jsse2.j.a(j.java:35) > >                 at com.ibm.jsse2.j.a(j.java:31) > >                 at com.ibm.jsse2.as.b(as.java:806) > >                 at com.ibm.jsse2.as.a(as.java:102) > >                 at com.ibm.jsse2.as.i(as.java:969) > >                 at com.ibm.jsse2.as.a(as.java:680) > >                 at com.ibm.jsse2.as.startHandshake(as.java:859) > >                 at org.postgresql.ssl.MakeSSL.convert(MakeSSL.java:40) > >                 ... 10 more > > I tried to search a lot but was not able to find the solution for > this. Let me know which driver to use for this and if anything I am > missing in this. > > Thanks, > > Anup > Update you jdbc driver to current release. > > DISCLAIMER > ========== > This e-mail may contain privileged and confidential information which > is the property of Persistent Systems Ltd. It is intended only for the > use of the individual or entity to which it is addressed. If you are > not the intended recipient, you are not authorized to read, retain, > copy, print, distribute or use this message. If you have received this > communication in error, please notify the sender and delete all copies > of this message. Persistent Systems Ltd. does not accept any liability > for virus infected mails. --------------0ED6031FD660DF9215D73D37 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit


On 5/14/19 6:35 AM, Anupkumar Seth wrote:

Hi,

 

Details required:-

 

JDBC driver build number:- postgresql-9.1-903.jdbc4

 

Server version:- PostgreSQL 11.2 (Ubuntu 11.2-1.pgdg16.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609, 64-bit

 

Exact error message and stacktrace:-

 

org.postgresql.util.PSQLException: The connection attempt failed.

                at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:150)

                at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:64)

                at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:123)

                at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:28)

                at org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:20)

                at org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:30)

                at org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:22)

                at org.postgresql.Driver.makeConnection(Driver.java:391)

                at org.postgresql.Driver.connect(Driver.java:265)

                at java.sql.DriverManager.getConnection(DriverManager.java:675)

                at java.sql.DriverManager.getConnection(DriverManager.java:219)

                at com.utility.PostgresSSL.main(PostgresSSL.java:24)

Caused by: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is:

                java.security.cert.CertPathValidatorException: The certificate issued by CN=certificate-authority is not trusted; internal cause is:

                java.security.cert.CertPathValidatorException: Certificate chaining error

                at com.ibm.jsse2.j.a(j.java:12)

                at com.ibm.jsse2.as.a(as.java:118)

                at com.ibm.jsse2.C.a(C.java:193)

                at com.ibm.jsse2.C.a(C.java:245)

                at com.ibm.jsse2.D.a(D.java:242)

                at com.ibm.jsse2.D.a(D.java:56)

                at com.ibm.jsse2.C.r(C.java:69)

                at com.ibm.jsse2.C.a(C.java:580)

                at com.ibm.jsse2.as.a(as.java:512)

                at com.ibm.jsse2.as.i(as.java:969)

                at com.ibm.jsse2.as.a(as.java:176)

                at com.ibm.jsse2.h.write(h.java:36)

                at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:93)

                at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:151)

                at org.postgresql.core.PGStream.flush(PGStream.java:521)

                at org.postgresql.core.v3.ConnectionFactoryImpl.sendStartupPacket(ConnectionFactoryImpl.java:257)

                at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:103)

                ... 11 more

Caused by: com.ibm.jsse2.util.h: PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is:

                java.security.cert.CertPathValidatorException: The certificate issued by CN=certificate-authority is not trusted; internal cause is:

                java.security.cert.CertPathValidatorException: Certificate chaining error

                at com.ibm.jsse2.util.f.a(f.java:35)

                at com.ibm.jsse2.util.f.b(f.java:96)

                at com.ibm.jsse2.util.e.a(e.java:19)

                at com.ibm.jsse2.aA.a(aA.java:132)

                at com.ibm.jsse2.aA.a(aA.java:39)

                at com.ibm.jsse2.aA.checkServerTrusted(aA.java:27)

                at com.ibm.jsse2.D.a(D.java:110)

                ... 23 more

Caused by: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.; internal cause is:

                java.security.cert.CertPathValidatorException: The certificate issued by CN=certificate-authority is not trusted; internal cause is:

                java.security.cert.CertPathValidatorException: Certificate chaining error

                at com.ibm.security.cert.PKIXCertPathBuilderImpl.engineBuild(PKIXCertPathBuilderImpl.java:422)

                at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:268)

                at com.ibm.jsse2.util.f.a(f.java:49)

                ... 29 more

Caused by: java.security.cert.CertPathValidatorException: The certificate issued by CN=certificate-authority is not trusted; internal cause is:

                java.security.cert.CertPathValidatorException: Certificate chaining error

                at com.ibm.security.cert.BasicChecker.<init>(BasicChecker.java:111)

                at com.ibm.security.cert.PKIXCertPathValidatorImpl.engineValidate(PKIXCertPathValidatorImpl.java:199)

                at com.ibm.security.cert.PKIXCertPathBuilderImpl.myValidator(PKIXCertPathBuilderImpl.java:749)

                at com.ibm.security.cert.PKIXCertPathBuilderImpl.buildCertPath(PKIXCertPathBuilderImpl.java:661)

                at com.ibm.security.cert.PKIXCertPathBuilderImpl.buildCertPath(PKIXCertPathBuilderImpl.java:607)

                at com.ibm.security.cert.PKIXCertPathBuilderImpl.engineBuild(PKIXCertPathBuilderImpl.java:368)

                ... 31 more

Caused by: java.security.cert.CertPathValidatorException: Certificate chaining error

                at com.ibm.security.cert.CertPathUtil.findIssuer(CertPathUtil.java:316)

                at com.ibm.security.cert.BasicChecker.<init>(BasicChecker.java:108)

                ... 36 more

 

 

What you were doing, ideally in code form:-

 

We are working on Connecting to Postgresql database via SSL through Java JDBC. We are not able to establish SSL connection, but non SSL connection is working. Postgresql SSL server has been set up at our end and if we connect to it using pgAdmin4 client we are able to connect to it via SSL but the same is not working in JAVA using JDBC.

 

In the jave program if we provide the connection string parameter ("sslfactory", "org.postgresql.ssl.NonValidatingFactory"), this property will ignore the certificate validation and connect via SSL, but we want to connect with passing certificates only.

 

If we try to run the program with certificates in the parameter we get error as posted above.

 

Code:-

 

String url = "jdbc:postgresql://<host>:5432/postgres";

                                Properties props = new Properties();

                                props.setProperty("user","postgres");

                                props.setProperty("password","temp4now");

                                props.setProperty("ssl","true");

                                props.setProperty("sslcert", "C:\\Users\\user1\\Desktop\\postgresSsl\\client\\postgresql.crt");

                                props.setProperty("sslkey", "C:\\Users\\user1\\Desktop\\postgresSsl\\client\\postgresql.key");

                                props.setProperty("sslrootcert", "C:\\Users\\user1\\Desktop\\postgresSsl\\client\\root.crt");

  Connection conn = DriverManager.getConnection(url, props);

 

 

 

If I use latest JDBC postgrsql driver "postgresql-42.2.5" then I get below error.

 

org.postgresql.util.PSQLException: SSL error: Received fatal alert: unexpected_message

                at org.postgresql.ssl.MakeSSL.convert(MakeSSL.java:42)

                at org.postgresql.core.v3.ConnectionFactoryImpl.enableSSL(ConnectionFactoryImpl.java:435)

                at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:94)

                at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:192)

                at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)

                at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195)

                at org.postgresql.Driver.makeConnection(Driver.java:454)

                at org.postgresql.Driver.connect(Driver.java:256)

                at java.sql.DriverManager.getConnection(DriverManager.java:675)

                at java.sql.DriverManager.getConnection(DriverManager.java:219)

                at com.utility.PostgresSSL.main(PostgresSSL.java:23)

Caused by: javax.net.ssl.SSLException: Received fatal alert: unexpected_message

                at com.ibm.jsse2.j.a(j.java:35)

                at com.ibm.jsse2.j.a(j.java:31)

                at com.ibm.jsse2.as.b(as.java:806)

                at com.ibm.jsse2.as.a(as.java:102)

                at com.ibm.jsse2.as.i(as.java:969)

                at com.ibm.jsse2.as.a(as.java:680)

                at com.ibm.jsse2.as.startHandshake(as.java:859)

                at org.postgresql.ssl.MakeSSL.convert(MakeSSL.java:40)

                ... 10 more

 

 

 

 

I tried to search a lot but was not able to find the solution for this. Let me know which driver to use for this and if anything I am missing in this.

 

Thanks,

Anup

Update you jdbc driver to current release.

DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
--------------0ED6031FD660DF9215D73D37--