-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: PostgreSQL Hibernate and SSL
PostPosted: Tue Feb 02, 2010 6:26 pm 
Newbie

Joined: Tue Feb 02, 2010 6:22 pm
Posts: 4
Our postgres server forces connection via SSL only. Can I still use Hibernate for my java process to persist/retrieve objects?


Top
 Profile  
 
 Post subject: Re: PostgreSQL Hibernate and SSL
PostPosted: Tue Feb 02, 2010 8:35 pm 
Senior
Senior

Joined: Mon Jul 07, 2008 4:35 pm
Posts: 141
Location: Berlin
Hi gorcasvlatin,

if you want to access your PostgreSQL you can use an SSH tunnel and port forward the remote database port to your local host. Refer to the PostgreSQL documentation.

If you establish the tunnel before you access the DB this should be possible, I guess (without knowing).

CU
Froestel

_________________
Have you tried turning it off and on again? [Roy]


Top
 Profile  
 
 Post subject: Re: PostgreSQL Hibernate and SSL
PostPosted: Wed Feb 03, 2010 9:37 am 
Newbie

Joined: Tue Feb 02, 2010 6:22 pm
Posts: 4
Hmm, that's not the answer I was hoping to hear. I am not the DBA and cannot turn off SSL. I am not the SA for the box in production so I cannot forward ports.

I was hoping Hibernate would own the DB connection and would connect using SSL. Perhaps a flag or setting can be turned on to tell it to do this?


Top
 Profile  
 
 Post subject: Re: PostgreSQL Hibernate and SSL
PostPosted: Wed Feb 03, 2010 4:34 pm 
Senior
Senior

Joined: Mon Jul 07, 2008 4:35 pm
Posts: 141
Location: Berlin
Hi gorcasvlatin,

so I guess you have to rely on the PostgreSQL JDBC Driver that you have access to in your app. Take a look at this documentation page. You should be able to configure a connection to your PostgreSQL server using SSL.

CU
Froestel

_________________
Have you tried turning it off and on again? [Roy]


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.