I am New to JSSE Plz Help

Hi All,

My task is to establish a secure connection for customers to communicate with ldap for Login.I really lack the idea how to implement ssl for a Form based SSL authentication.Kindly give some suggesssion.

To test using jsse i have downloaded and installed the jar files in javahome directory.which happens to be

c:\iplanet\ias6\ias\usr\java\jre

When i try to execute a java code to find the trustStore

i am getting trustStore not found.

below is the code

public class ShowTrustStore {

public static void main(String[] args) {

String trustStore = System.getProperty("javax.net.ssl.trustStore");

if(trustStore == null)

System.out.println("javax.net.ssl.trustStore is not defined");

else System.out.println("javax.net.ssl.trustStore = " + trustStore);

}

}

Kindly respond ..what is the setting which is lacking as well as the ways to use ssl for a browser based client.

regards

manoj

[1044 byte] By [manojmony] at [2007-9-26 4:28:57]
# 1
The value of the truststore will be null becoz u havent set it..during the handshake, first it checks for the javax.net.ssl.trustStore value, then jssecacerts, and then cacerts...As u havent set the value, it is null...
glow007 at 2007-6-29 17:39:51 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...
# 2
Can u elaborate on "The value of the truststore will be null becoz u havent set it.."Any sample u can give regardsmanoj
manojmony at 2007-6-29 17:39:51 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...
# 3
System.setProperty("javax.net.ssl.trustStore", "/home1/usr/jdk/jre/lib/security/mytruststore");If you set the property, it will not be null.
glow007 at 2007-6-29 17:39:51 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...