From: | Vitalii Tymchyshyn <tivv00(at)gmail(dot)com> |
---|---|
To: | Maz Mohammadi <mmohammadi(at)pentaho(dot)com> |
Cc: | "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: can't access through SSL |
Date: | 2013-02-22 17:56:01 |
Message-ID: | CABWW-d16U403PogPcv+J4vNi437KZ-qPbC-jASg9tCkd9knJrg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-jdbc |
Try jdbc:postgresql://localhost:5432/testdb?ssl=true
2013/2/22 Maz Mohammadi <mmohammadi(at)pentaho(dot)com>
> Hello all,****
>
> ** **
>
> I’m trying to access a postgres database through a java application
> (tomcat). This is the only entry I have in pg_hba.conf****
>
> ** **
>
> # TYPE DATABASE USER ADDRESS METHOD****
>
> hostssl all all 127.0.0.1/32
> cert****
>
> ** **
>
> and put the certicate (from /var/lib/postre…../coord/server.crt) in the
> cacerts under $JAVA_HOME/…….****
>
> ** **
>
> This is my jdbc URL….****
>
> jdbc:postgresql://localhost:5432/testdb&ssl=true****
>
> ** **
>
> But When I try to create a datasource on tomcat, I get the following error…
> ****
>
> “Connection attempt failed: FATAL: no pg_hba.conf entry for host
> "127.0.0.1", user "progres-xc", database "testdb&ssl=true", SSL off”****
>
> ** **
>
> Any help is greatly appreciated.****
>
> ** **
>
> -maz****
>
--
Best regards,
Vitalii Tymchyshyn
From | Date | Subject | |
---|---|---|---|
Next Message | John R Pierce | 2013-02-22 19:35:08 | Re: confirming security. |
Previous Message | Maz Mohammadi | 2013-02-22 17:43:13 | can't access through SSL |
From | Date | Subject | |
---|---|---|---|
Next Message | Kris Jurka | 2013-02-22 18:34:24 | Re: JDBC - PreparedStatement reuse oddity when using setObject() with nulls and setTimestamp() |
Previous Message | Maz Mohammadi | 2013-02-22 17:43:13 | can't access through SSL |