Secure Your Sockets with JSSE
Subject:   changes required if java 1.4 is used
Date:   2005-12-06 13:32:53
From:   jav_qs

What are the changes that is required to be done, if java 1.4 is used. As jsse comes with 1.4.
Here are my steps..

1.Set Provider -SUNJCE
2.Set java.protocol.handler.pkgs","HTTPClient"
3.create HttpsURLConnection object -urlConn(https://secureinteranet.url/...)
4.Basic Authorization - using Base64Encoding
urlConn.setRequestProperty("Authorization", "Basic " + encoding);
5.GetInstance SLLContext --
6.Create keystore with cacerts from java_home/lib/security
ks.load(new FileInputStream(keystore file from java_home/lib/security))
7.Generate KeyManager - getManager() -from KayManagerFactory
8.Generate TrustManager -getTrustManagers()- from TrustManagerFactory
9.Initialize SSLContext(keymanagerist,trustmanagerlist,randomnumber)
10.Create ServerSocket with SSLContext.getServerFactory
SSLServerSocket ssc = (SSLServerSocket)ssf.createServerSocket(443);
12.urlConn.setRequestProperty("Content-Type", "MIME");

-- Are above steps correct,for authentication and display of https URLs?

I see the following error
Address already in use: JVM_Bind

Any input will be much appreciated.


1 to 1 of 1
1 to 1 of 1