Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / October 2005

Tip: Looking for answers? Try searching our database.

Set a KeyStore as the system property javax.net.ssl.trustStore value

Thread view: 
oziris - 29 Sep 2005 15:39 GMT
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      



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.