simple SL connection issue

I could connect to a HTTPS Resource successfully with java. But it creates Exception when i eliminate this line from my code, that is,

System.setProperty("javax.net.ssl.trustStore",keyStoreLocation);

Actually my HTTPS location is trusted, and i dont want to provide keystore location like this. Is there any way to eliminate this line and then still do the connection successfully?

Thanks in advance

[425 byte] By [shaba_dila] at [2007-10-2 20:13:04]
# 1
I've got a question : could you explain the step you made to get the SSL working?For your problem, two things :1. use java -Djavax.net.ssl.trustStore=location2. i think Java load a file located in %APPDATA%\\Sun\Java\Deployment\security, which is named trusted.certs
Balduriena at 2007-7-13 22:55:06 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...
# 2

> Is there any way to eliminate this line and then still do the

> connection successfully?

Sure, use Java's default truststore (JAVA_HOME/lib/security/cacerts or jssecacerts, or whatever your container server uses if any) and make sure that the default truststore trusts the target host.

ejpa at 2007-7-13 22:55:06 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...
# 3
Thanks ejpjssecacerts doesn't contain my cert. so there is no way
shaba_dila at 2007-7-13 22:55:06 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...
# 4
so put it in there
ejpa at 2007-7-13 22:55:07 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...