Hudson Jira plugin SSL configuration

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 

 

 

 

If you have encounteded the above error, it means that you too have realized that Hudons Jira plugin doesn't support https URLs out of the box, I found this useful post which helped configure Java security to trust the certificate imported from Jira host machine.

 

In short, what I did is:

  1. Compiled InstallCert.java
  2. Ran InstallCert <Jira host> and followed instructions/question prompted
  3. Replaced cacerts file under JAVA_HOME/jre/lib/security with jssecacerts file which was created in the directory where I ran step 2
  4. Restart Hudson

 

Notes:

  1. Make sure you replace cacerts in the java installation used to run Hudson
  2. If you have previously configured java KeyStore, you'll to import the certificate using 'keytool' command which is a bit more tricky