Home | Previous Page | Next Page   Connecting to the Database > Encryption Options >

Using the JCE Security Package

To use either the SECURITY=PASSWORD option or to use JDBC encryption CSM, you must install a JDK Java Cryptography Extension (JCE)-compliant security package on the JDBC client and include the installation directory of the security package in the CLASSPATH variable. If you are using JDK 1.3, you can download the Sun JCE 1.2.2 or later security package from the Sun Microsystems web site.

Note:
If you are using JDK 1.3, ensure that you use Sun JCE1.2.2 or later since a problem exists in JCE1.2.1 that causes incorrect MAC generation.

Sun JCE has been integrated into the J2 SDK, Version 1.4, but is available only in the U.S. or Canada. If your site does not comply with this or other Sun JCE licensing restrictions, you can try using IBM Informix JDBC Driver with other JCE-certified security package providers. However, these packages have not been tested and certified to work with Informix database servers configured to use the SPWDCSM CSM option or the encryption CSM.

If you are using JDK1.3 to install the Sun JCE package, download the Sun JCE distribution, extract the .jar file containing the Sun JCE provider packages, and copy them to jre/lib/ext directory where the JDK is installed. If you decide to keep Sun JCE provider .jar files at some other location, make sure that the CLASSPATH environment variable includes the extracted .jar filename.

Edit the lib/security/java.security file from JDK installation to include the following two lines:

security.provider.1=sun.security.provider.Sun
security.provider.2=com.sun.crypto.provider.SunJCE
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]