Post migration of Continuous Delivery Director(CDD) to a new server and changing configuration to let CDD point to old DB, it was noticed that re-registration of plugins fails with below error.
PKIX path building failed: unable to find valid certification path to requested target
The error indicates that CDD is not able to resolve a valid certificate required to communicate with plugin hosting server(Tomcat).
Release : 8.x
Component : Continuous Delivery Director(CONTINUOUS DLVRY DIRCTR)
Sub-Component: RACDEA : CDD ADMINISTRATION
Follow steps below to resolve the issue
keytool -import -noprompt -trustcacerts -alias <AliasName> -file <certificate> -keystore "$JAVA_HOME/jre/lib/security/cacerts" -storepass <Password>
For more details refer to CDD product documentation Secure Communication.