Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: ssl connection and webstart



How can I add the cert via webstart so a "user" can do this?

Are you using any standard certificates from the default certificate key
store?

If the answer is no, then one idea is to create your own certificate key
store in your software and add your certificate with java code.
You do this as part of creating your SSLSocketFactory, see attached example.
And then when your application starts up, the first thing you do before
making any connections to postgresql database is:
java.security.Security.setProperty("ssl.SocketFactory.provider",
"MyOrganisation.MyClientApp.ssl.MySSLSocketFactory");

Hope that helps.
Regards
Donald Fraser

Attachment: MySSLSocketFactory.java
Description: Binary data



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group