hi there,
I have apache +mod_ssl + openssl + tomcate installed
at my linux machine and which is runnign well with
https and http protocol in browser.  
Now I tried to create one java application to make
securely connect with https server through the jsse
library.  

Whole scenariao is, I made my own server certificate
type 3 with rsa 

when i run my rpogram it gaves me following exception
with my https server.
 
javax.net.ssl.sslException: untrusted server cert
chain

now this is the exception becos my certificate is not
in truststore.

How can i give my certificate in truststore.  

Becos my program is working with any other https
website like https://www.verisign.com
but not work with my server url.
Can you explain me how can I create trusted
certificate?
or how can I make my certificate trusted to any java
application wich use jsse?

I dont know where is the problem.
my java program is below 

public 
                             class Test 
                             { 
                               public 
                               static 
                               void 
                               main(String []
arstring) 
                               { 
                                 try 
                                 { 
                                   new
java.net.URL("https://"; + arstring[0] +
"/").getContent(); 
                                 } 
                                 catch (Exception
exception) 
                                 { 
                                  
exception.printStackTrace(); 
                                 } 
                               } 
                             } 

Any help will be appriciated.
Thansk
chirag

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to