Hi,
Here the deal.
- I know how to create a KeyStore with KeyStore.getInstance(), etc.
- I know how to set a keystore file (.keystore) as the value of the
system property javax.net.ssl.trustStore with System.setProperty().
Is there a mean to set a KeyStore object as the this property value?
My application has only access to the certificate files and I would
like dynamically create a KeyStore, set the above property with in
order to create a SSL session only with the instruction
m_sslSession = new URL("https://localhost:443/soap/servlet/rpcrouter");
so without using SSLContext and SSLSocketFactory.
Thanks in advance even for any minor births of ideas you could have.
-o--
Christophe Elek - 05 Oct 2005 14:19 GMT
"oziris" <oziris.groups@gmail.com> wrote in news:1128004758.725152.317730
@f14g2000cwb.googlegroups.com:
> javax.net.ssl.trustStore
1) try javax.net.ssl.keyStore
2) preferred is to use SSLFactory
you can use:
HttpsURLConnection#public static void setDefaultSSLSocketFactory
(SSLSocketFactory sf)
or:
ssl.SocketFactory.provider system property either in your code or in
java.security

Signature
============================================================
Christophe Elek
IBM Software Group - Toronto Lab
Technical Team Lead - Cross product Tech Support
Cross components problem resolution specialist
Eclipse.org - Platform Core development
Phone: 905-413-3467
Email: celek@ca.ibm.com