pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Ssl question
6+ messages / 4 participants
[nested] [flat]

* Ssl question
@ 2008-02-04 15:53  Bronson, Allan B. (Mission Systems) <Allan.Bronson@ngc.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Bronson, Allan B. (Mission Systems) @ 2008-02-04 15:53 UTC (permalink / raw)
  To: pgsql-jdbc

I am trying to create a SSl connection to PostGres using JDBC and am not
sure if it is working.  

I read that you must have openssl on the client machine for the
connection to take place.  I have turned ssl = on in the config file,
created a cert and key file and placed them in the correct directory,
created a truststore and add the ?ssl=true to the url for the client.
When I do all this I connect and get  data back from the db.  My
confusion is when I read that I need openssl on the client machine to
connect, since I can connect without openssl installed.  I do notice
that if my truststore does not have the cert placed in it, I get an
error saying missing certificate ( something like that ), does that mean
ssl is working for the client and server? 

I am using Postgres 8.2 and have read that I may need to compile the
Postgres src code with openssl for it to be enabled.  Is this correct or
is SSL already compiled into the src code?  

Thanks to anyone who can provide information or point me in the right
direction.  I am facing a tight deadline and don't have a ton of extra
time to research this more.  

allan

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Ssl question
@ 2008-02-04 19:23  Altaf Malik <mmalik_altaf@yahoo.com>
  parent: Bronson, Allan B. (Mission Systems) <Allan.Bronson@ngc.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Altaf Malik @ 2008-02-04 19:23 UTC (permalink / raw)
  To: Bronson, Allan B. \(Mission Systems\) <Allan.Bronson@ngc.com>; pgsql-jdbc

You don't need to have openssl on client machine to connect to an 'ssl enabled' server. The steps you have done are sufficient to connect to the server using ssl provided that your server is configured to accept ssl connections.
   
  To enable ssl on server side, you need to compile the source with ssl=on option and that requires openssl to be available. However, if your server is not configured properly for ssl support, you won't be able to connect to it using ssl. If you have success connecting to server using ssl, it means you have everything great. No worries
   
  Regards,
  Altaf Malik
  EnterpriseDB
  http://www.enterprisedb.com/
  
"Bronson, Allan B. (Mission Systems)" <Allan.Bronson@ngc.com> wrote:
      I am trying to create a SSl connection to PostGres using JDBC and am not sure if it is working.  
  I read that you must have openssl on the client machine for the connection to take place.  I have turned ssl = on in the config file, created a cert and key file and placed them in the correct directory, created a truststore and add the ?ssl=true to the url for the client.  When I do all this I connect and get  data back from the db.  My confusion is when I read that I need openssl on the client machine to connect, since I can connect without openssl installed.  I do notice that if my truststore does not have the cert placed in it, I get an error saying missing certificate ( something like that ), does that mean ssl is working for the client and server? 
  I am using Postgres 8.2 and have read that I may need to compile the Postgres src code with openssl for it to be enabled.  Is this correct or is SSL already compiled into the src code?  
  Thanks to anyone who can provide information or point me in the right direction.  I am facing a tight deadline and don’t have a ton of extra time to research this more.  
  allan 


       
---------------------------------
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* SSL question
@ 2015-08-28 13:28  Yogi Barot <YBarot@symcor.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Yogi Barot @ 2015-08-28 13:28 UTC (permalink / raw)
  To: pgsql-jdbc

Hi,



I have few questions for postgresql queries using JDBC.



*        Do you have any idea why adding SSL will slow the response time?

*        What is general overhead for SSL enabling in potgresql using JDBC?

*        We have SSL enabled with - Version of openssl we have is 0.9.8 and rhel 5, postgresql version is 9.0.19.

We are seeing 3-7% overhead with SSL on. Need to understand technical reason for it. we use JDBC.  What I found that JDBC does not do compression.



Really looking to find details of how postgresql works with ssl with jdbc connection.



Appreciate your help.



Thanks,

Yogi


CONFIDENTIALITY WARNING 
This communication, including any attachments, is for the exclusive use of addressee and may contain proprietary and/or confidential information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.

AVERTISSEMENT RELATIF À LA CONFIDENTIALITÉ 
Ce message, ainsi que les pièces qui y sont jointes, est destiné à l’usage exclusif de la personne à laquelle il s’adresse et peut contenir de l’information personnelle ou confidentielle. Si le lecteur de ce message n’en est pas le destinataire, nous l’avisons par la présente que toute diffusion, distribution, reproduction ou utilisation de son contenu est strictement interdite. Veuillez avertir sur-le-champ l’expéditeur par retour de courrier électronique et supprimez ce message ainsi que toutes les pièces jointes.

-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: SSL question
@ 2015-08-28 13:46  David G. Johnston <david.g.johnston@gmail.com>
  parent: Yogi Barot <YBarot@symcor.com>
  0 siblings, 1 reply; 6+ messages in thread

From: David G. Johnston @ 2015-08-28 13:46 UTC (permalink / raw)
  To: Yogi Barot <YBarot@symcor.com>; +Cc: pgsql-jdbc

On Fri, Aug 28, 2015 at 9:28 AM, Yogi Barot <YBarot@symcor.com> wrote:

> ·        Do you have any idea why adding SSL will slow the response time?
>
> We are seeing 3-7% overhead with SSL on. Need to understand technical
> reason for it. we use JDBC.  What I found that JDBC does not do compression.
>

​Encryption and decryption takes time...

​David J.

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: SSL question
@ 2015-08-28 13:54  Yogi Barot <YBarot@symcor.com>
  parent: David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Yogi Barot @ 2015-08-28 13:54 UTC (permalink / raw)
  To: 'David G. Johnston' <david.g.johnston@gmail.com>; +Cc: pgsql-jdbc

Thanks for your quick reply, but 3-7% overhead is this reasonable or we have some issue with application? Need to give better technical reason to management for not enabling SSL.  Our application uses connection pooling so on daily basis only few connections to database.

Thanks,
Yogi

From: David G. Johnston [mailto:david.g.johnston@gmail.com]
Sent: Friday, August 28, 2015 9:47 AM
To: Yogi Barot
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] SSL question

On Fri, Aug 28, 2015 at 9:28 AM, Yogi Barot <YBarot@symcor.com<mailto:YBarot@symcor.com>> wrote:

•        Do you have any idea why adding SSL will slow the response time?

We are seeing 3-7% overhead with SSL on. Need to understand technical reason for it. we use JDBC.  What I found that JDBC does not do compression.

​Encryption and decryption takes time...

​David J.



CONFIDENTIALITY WARNING 
This communication, including any attachments, is for the exclusive use of addressee and may contain proprietary and/or confidential information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.

AVERTISSEMENT RELATIF À LA CONFIDENTIALITÉ 
Ce message, ainsi que les pièces qui y sont jointes, est destiné à l’usage exclusif de la personne à laquelle il s’adresse et peut contenir de l’information personnelle ou confidentielle. Si le lecteur de ce message n’en est pas le destinataire, nous l’avisons par la présente que toute diffusion, distribution, reproduction ou utilisation de son contenu est strictement interdite. Veuillez avertir sur-le-champ l’expéditeur par retour de courrier électronique et supprimez ce message ainsi que toutes les pièces jointes.


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: SSL question
@ 2015-08-28 14:13  David G. Johnston <david.g.johnston@gmail.com>
  parent: Yogi Barot <YBarot@symcor.com>
  0 siblings, 0 replies; 6+ messages in thread

From: David G. Johnston @ 2015-08-28 14:13 UTC (permalink / raw)
  To: Yogi Barot <YBarot@symcor.com>; +Cc: pgsql-jdbc

On Fri, Aug 28, 2015 at 9:54 AM, Yogi Barot <YBarot@symcor.com> wrote:

> Thanks for your quick reply, but 3-7% overhead is this reasonable
>

​Sounds reasonable.​

or we have some issue with application?
>

​Hard to say​ - probably not

Need to give better technical reason to management for not enabling SSL.
>

​There is a business/data component​ to the decision as well.

Our application uses connection pooling so on daily basis only few
> connections to database.
>
>
>
What does this have to do with the question at hand?

David J.
​

^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2015-08-28 14:13 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-02-04 15:53 Ssl question Bronson, Allan B. (Mission Systems) <Allan.Bronson@ngc.com>
2008-02-04 19:23 ` Altaf Malik <mmalik_altaf@yahoo.com>
2015-08-28 13:28 SSL question Yogi Barot <YBarot@symcor.com>
2015-08-28 13:46 ` Re: SSL question David G. Johnston <david.g.johnston@gmail.com>
2015-08-28 13:54   ` Re: SSL question Yogi Barot <YBarot@symcor.com>
2015-08-28 14:13     ` Re: SSL question David G. Johnston <david.g.johnston@gmail.com>

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