on 03-15-2006 9:55 AM
Hi
I am trying to connect to an https site with java code.
The session starts by exchanging certificates and then by a session cookie.
how do I exchange certificates in the java code?
here is some of the java code i tried to use.
when logging in the site refers me to the login page .
thanks
ofer
Security.addProvider
(new com.sun.net.ssl.internal.ssl.Provider());
KeyStore keystore = KeyStore.getInstance("JKS");
keystore.load
(new FileInputStream
("C:
j2sdk1.4.2_09
jre
lib
security
cacerts"),
"changeit".toCharArray());
SSLContext sc = SSLContext.getInstance("SSL");
sc.init(factory.getKeyManagers(),
trustAllCerts, new java.security.SecureRandom());
HttpsURLConnection.setDefaultSSLSocketFactory(
sc.getSocketFactory());
hi Ofer,
Checkout the link..,
http://help.sap.com/saphelp_nw04/helpdata/en/e2/71c83edf72e16be10000000a114084/content.htm
hope it helps..,
regards,
Vinoth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.