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

* Jbuilder Question..
@ 2001-05-08 07:08  Thys De Wet@iCommerce <thys.deWet@za.didata.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Thys De Wet@iCommerce @ 2001-05-08 07:08 UTC (permalink / raw)
  To: pgsql-jdbc

Anybody have some sort of fix for jbuilder4 enterprise not displaying the
tables in my db.. 
I'm using postgres 7.1 and the 7.0-1.2 jar file ..


Please help ..

Thanx

Thys de Wet
[mailto:thys.dewet@za.didata.com]



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

* JBuilder Question
@ 2005-04-04 23:37  Benjamin W. Fisher <kurasoe@fastmail.fm>
  0 siblings, 1 reply; 4+ messages in thread

From: Benjamin W. Fisher @ 2005-04-04 23:37 UTC (permalink / raw)
  To: pgsql-jdbc

Hey.  I've been trying to set myself up so that I can use the JDBC to
connect to my SSL postgres server.  I got the 3x version (8.x too)
latest from the site, and am able to utilize it in my Java code.  It
works until I set the ssl property to true in a connection.  Then it
cannot connect.  I followed the directions on postgresql.org for setting
up my little server to utilize SSL.  And I have postgres compiled with
openssl, yes.

As far as what I did to get the SSL working, I did as per the docs say:

Server-side:

openssl req -new -text -out server.req
openssl rsa -in privkey.pem -out server.key
rm privkey.pem
openssl req -x509 -in server.req -text -key server.key -out server.crt
chmod og-rwx server.key

Client-side:

openssl x509 -in server.crt -out server.crt.der -outform der
keytool -keystore $JAVA_HOME/lib/security/cacerts -alias postgresql
-import -file server.crt.der
keytool -keystore mystore -alias postgresql -import -file server.crt.der 

I got through all that.

But the java -Djavax.net.ssl.trustStore=mystore
-Djavax.net.ssl.trustStorePassword=mypassword com.mycompany.MyApp I'm
not sure how to get in there, since I use JBuilder.  I know how to add
in required libraries (*.jar) for it, but not sure about this kind of
thing.

Anyone know how to do this?



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

* Re: JBuilder Question
@ 2005-04-05 00:15  Andrew Lazarus <drlaz@attglobal.net>
  parent: Benjamin W. Fisher <kurasoe@fastmail.fm>
  0 siblings, 1 reply; 4+ messages in thread

From: Andrew Lazarus @ 2005-04-05 00:15 UTC (permalink / raw)
  To: Benjamin W. Fisher <kurasoe@fastmail.fm>; +Cc: pgsql-jdbc

 From the JBuilder menu, Run/Configurations/Edit and add the -D flags to 
the VM parameters. (Or was this not what you were asking?)

Benjamin W. Fisher wrote:

>[snip]
>But the java -Djavax.net.ssl.trustStore=mystore
>-Djavax.net.ssl.trustStorePassword=mypassword com.mycompany.MyApp I'm
>not sure how to get in there, since I use JBuilder.  I know how to add
>in required libraries (*.jar) for it, but not sure about this kind of
>thing.
>
>Anyone know how to do this?
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: Have you searched our list archives?
>
>               http://archives.postgresql.org
>
>  
>




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

* Re: JBuilder Question
@ 2005-04-05 01:26  Benjamin W. Fisher <kurasoe@fastmail.fm>
  parent: Andrew Lazarus <drlaz@attglobal.net>
  0 siblings, 0 replies; 4+ messages in thread

From: Benjamin W. Fisher @ 2005-04-05 01:26 UTC (permalink / raw)
  To: pgsql-jdbc

Wrote this to drlaz@attglobal.net only on accident, who responded to my
original post:

On Mon, 04 Apr 2005 17:48:02 -0700, "Benjamin W. Fisher"
<kurasoe@fastmail.fm> said:
> Thanks.
> 
> I think that is what I needed, for setting those things up in JBuilder. 
> In the VM parameter field I put in -Djavax.net.ssl.trustStore=mystore
> -Djavax.net.ssl.trustStorePassword=mypassword
> 
> I still am not understanding the line I think:
> java -Djavax.net.ssl.trustStore=mystore
> -Djavax.net.ssl.trustStorePassword=mypassword com.mycompany.MyApp
> that I'm getting looking at the docs at
> http://jdbc.postgresql.org/documentation/80/ssl-client.html
> 
> Not sure what I'm supposed to do.
> 
> Do you know what I need to do at this point to get SSL working?  I can
> connect from the command line with psql just fine.  Passing the same
> addy/port/user/pass/etc options.  The JDBC driver is working.  I'm
> passing the ssl=true property in my connection, but still getting
> connection attempt failed.  Take ssl off and it's working.
> 
> On Mon, 04 Apr 2005 17:15:51 -0700, "Andrew Lazarus"
> <drlaz@attglobal.net> said:
> >  From the JBuilder menu, Run/Configurations/Edit and add the -D flags to 
> > the VM parameters. (Or was this not what you were asking?)
> > 
> > Benjamin W. Fisher wrote:
> > 
> > >[snip]
> > >But the java -Djavax.net.ssl.trustStore=mystore
> > >-Djavax.net.ssl.trustStorePassword=mypassword com.mycompany.MyApp I'm
> > >not sure how to get in there, since I use JBuilder.  I know how to add
> > >in required libraries (*.jar) for it, but not sure about this kind of
> > >thing.
> > >
> > >Anyone know how to do this?
> > >
> > >---------------------------(end of broadcast)---------------------------
> > >TIP 6: Have you searched our list archives?
> > >
> > >               http://archives.postgresql.org
> > >
> > >  
> > >
> > 



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


end of thread, other threads:[~2005-04-05 01:26 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-05-08 07:08 Jbuilder Question.. Thys De Wet@iCommerce <thys.deWet@za.didata.com>
2005-04-04 23:37 JBuilder Question Benjamin W. Fisher <kurasoe@fastmail.fm>
2005-04-05 00:15 ` Re: JBuilder Question Andrew Lazarus <drlaz@attglobal.net>
2005-04-05 01:26   ` Re: JBuilder Question Benjamin W. Fisher <kurasoe@fastmail.fm>

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