9.1 Procedure

  1. Navigate to the /opt/netiq/common/jre/conf/security/ directory.

  2. Take a backup of the java.security file.

  3. Edit the java.security file by executing the following steps:

    1. 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
    2. Search for the ssl.KeyManagerFactory.algorithm=SunX509 string, comment it, and then add:

      ssl.KeyManagerFactory.algorithm=PKIX
    3. Search for the keystore.type string, comment it, and then add:

      keystore.type=bcfks
  4. Navigate to the /opt/netiq/common/jre/lib/security/ location:

  5. Take a backup of the cacerts file.

  6. 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
  7. 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
  8. 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 &
  9. Start the Fanout Agent by using the following command:

    ./startAgent