|
Installing the JSSE |
|
The JSSE (Java Secure Socket Extension) is a set of optional packages for JDK 1.2.x and JDK 1.3.x that enable secure Internet communications using SSL (Secure Sockets Layer) and TLS (Transport Layer Security) protocols. The JSSE is necessary only if you are using the Ftps class with a JDK prior to JDK 1.4.
Download the JSSE
The first step in installing the JSSE is to download the optional JSSE package provided for JDK versions 1.2.x and 1.3.x.
http://java.sun.com/products/jsse/
Install the JSSE jar files
After downloading the JSSE extract the contents of the package to a directory on your system. In the lib directory of this package you will find the files jcert.jar, jnet.jar and jsse.jar. Copy these files to your <java-home>/lib/ext directory e.g. C:\jdk1.2.2\jre\lib\ext.
Register the SunJSSE provider
In your <java-home>/lib/security/java.security file you should find a section that lists the security providers and their preference.
Example
#
# List of providers and their preference orders (see above):
#
security.provider.1=sun.security.provider.Sun
Update this section registering the com.sun.net.ssl.internal.ssl.Provider class as a provider.
Example
#
# List of providers and their preference orders (see above):
#
security.provider.1=sun.security.provider.Sun
security.provider.2=com.sun.net.ssl.internal.ssl.Provider