Use one of these procedures to enable FIPS 140-2 or NIST
SP800-131a on WebSphere Liberty Profile.
Before you begin
Run the configuration wizard and start the services before
you start this task.
Procedure
- To enable FIPS 140-2:
- Locate the installation directory of Liberty at <install-dir>\AppScan
Enterprise\Liberty\usr\servers\ase.
-
Add the -Dcom.ibm.jsse2.usefipsprovider=true property to the
jvm.options file to enable the JSSE2 provider to run in FIPS 140-2 mode.
- Go to <install-dir>\AppScan Enterprise\Liberty\jre\lib\security directory.
- In a text editor, edit the java.security master
security properties file to register additional cryptographic package
providers.
- Update these two lines:
#ssl.SocketFactory.provider=
#ssl.ServerSocketFactory.provider=
to
ssl.SocketFactory.provider=com.ibm.jsse2.SSLSocketFactoryImpl
ssl.ServerSocketFactory.provider=com.ibm.jsse2.SSLServerSocketFactoryImpl
- Locate the list of cryptographic providers that are
located after the line # List of providers and their preference
orders and replace it with the following list:
security.provider.1=com.ibm.crypto.fips.provider.IBMJCEFIPS
security.provider.2=com.ibm.jsse2.IBMJSSEProvider2
security.provider.3=com.ibm.crypto.provider.IBMJCE
security.provider.4=com.ibm.security.jgss.IBMJGSSProvider
security.provider.5=com.ibm.security.cert.IBMCertPath
security.provider.6=com.ibm.security.sasl.IBMSASL
security.provider.7=com.ibm.xml.crypto.IBMXMLCryptoProvider
security.provider.8=com.ibm.xml.enc.IBMXMLEncProvider
security.provider.9=org.apache.harmony.security.provider.PolicyProvider
security.provider.10=com.ibm.security.jgss.mech.spnego.IBMSPNEGO
- Go to <install-dir>\AppScan
Enterprise\Liberty\jre\bin and open a cmd window.
Your certificates must be at least 1024 in size and can be signed
with a DSA or RSA signature algorithm. The keytool utility can be
used to generate a compatible keypair: 1 keytool -genkey
-alias default -keyalg RSA -keysize 1024 -dname CN=example -keystore
fips.jks -storepass Liberty -keypass Liberty.
- Save and close the file, and then rerun the configuration
wizard.
- To enable NIST SP800-131a:
- Locate the installation directory of Liberty at <install-dir>\AppScan
Enterprise\Liberty\usr\servers\ase.
-
Add the -Dcom.ibm.jsse2.sp800-131=transition property to the
jvm.options file to enable the JSSE2 provider to run in NIST transition mode.
- Go to the server.xml file in the
same directory and replace the sslProtocol="SSL_TLSv2" property
with sslProtocol="TLSv1.2".
- Save and close the file, and then rerun the configuration
wizard.