After renewing the certificate in the ITPAM getting the below error in jstd.log when invoking PAM in SDM:
05:37:36.174[Thread-3] ERROR ItpamWorkflow 575 Error getting definitions:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
Resolution
- Download the certificate using the browser from the IT PAM URL. File saved as chain certificate with extension CRT. Example filename as: pam.crt.
- Copy the certificate file to the SDM NX_ROOT\bin directory
- Take backup of NX_ROOT\NX.env file and NX_ROOT\pdmconf\nx_keystore file.
- Edit NX_ROOT\NX.env file to to remove the NX_KEYSTORE_REF value by deleting the value after “=” sign.
- Also delete the file NX_ROOT\pdmconf\nx_keystore
- From the command prompt go to location NX_ROOT\bin and run the command as: pdm_perl pdm_keystore_mgr.pl -import pam.crt
- Once step 6 is completed check whether NX.env is updated with the value NX_KEYSTORE_REF, and also NX_ROOT\pdmconf\nx_keystore to be created.
- Tomcat webserver also need the reference for the correct certificate. Hence we need to update NX_ROOT\bopcfg\www\CATALINA_BASE\conf\server.xml with the updated keystore file.
- Execute the command to generate the keystore file: keytool -import -keystore casm.keystore -file pam.crt
- Update server.xml with the correct path to the keystore file.
- Updating the tomcats server.xml requires tomcat restart.
- As the rpc_srvr process is a java process and it used the cacerts from SharedComponents JRE. Exmple folder location: C:\Program Files (x86)\CA\SC\JRE\11.0.3\lib\security\cacerts.
- Hence make sure to update cacerts with the new certificate. Execute below command to update cacerts. keytool -importcert -alias itpam -file pam.crt -keystore C:\Program Files (x86)\CA\SC\JRE\11.0.3\lib\security\cacerts
- Restart rpc_srvr process by executing the command as: pdm_bounce rpc.
If the environment is AA, make sure the NX.env has the correct value of keystore. If the version control is enabled, the NX.env values may get overwritten.
