Navigate to the /opt/netiq/common/jre/conf/security/ directory.
Take a backup of the java.security file.
Edit the java.security file by executing the following steps:
Search for the List of providers and their preference orders string, comment all the existing providers, and then add the following entries:
security.provider.1=BCFIPS security.provider.2=BCJSSE security.provider.3=SunJSSE security.provider.4=SUN security.provider.5=SunJCE
Search for the ssl.KeyManagerFactory.algorithm=SunX509 string, comment it, and then add:
ssl.KeyManagerFactory.algorithm=PKIX
Search for the keystore.type string, comment it, and then add:
keystore.type=bcfks
Navigate to the /opt/netiq/common/jre/lib/security/.
Take a backup of the cacerts file.
To support security enhancement, convert the cacerts file to bcfks using the following command:
keytool -importkeystore -srckeystore cacerts -srcstorepass netiq123 -srcstoretype JKS -destkeystore cacerts -deststorepass netiq123 -deststoretype BCFKS -providerclass org.bouncycastle.jcajce.provider.BouncyCastleFipsProvider -providerpath $CLASSPATH
To convert the keystore file from jks to bcfks, run the following command:
keytool -importkeystore -srckeystore /opt/novell/dirxml/fanoutagent/config/keystore.jks -srcstorepass changeit -srcstoretype PKCS12 -destkeystore /opt/novell/dirxml/fanoutagent/config/keystore.jks -deststorepass changeit -deststoretype BCFKS -providerclass org.bouncycastle.jcajce.provider.BouncyCastleFipsProvider -providerpath $CLASSPATH
Navigate to the /opt/novell/dirxml/fanoutagent/bin/ directory and make the following changes in the startAgent.sh file:
${JAVA} --add-opens=java.base/sun.security.internal.spec=ALL-UNNAMED -Djavax.net.ssl.trustStore=/opt/netiq/common/jre/lib/security/cacerts -Djavax.net.ssl.trustStorePassword=changeit -Dkeystore.type=BCFKS -Dorg.bouncycastle.fips.approved_only=true -Dorg.bouncycastle.rsa.allow_multi_use=true -cp ${CLASS_PATH} com.netiq.idm.fanoutagent.FanoutAgent $filename $SERVERONLY &Start the Fanout Agent by using the following command:
./startAgent -config ../config/fanoutagent-config.properties