Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If the SSL Certificate is missing from trustStore of Java, Import-Export Utility can't establish a connection to the Jira instance.

...

Code Block
Error in authenticationjavax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target


SolutionNote : SSL certificate related issues are not within QMetry Support scope, however, adding . Users have to reach out to thier Network/IT team to solve this issue.


Solution: Adding SSL certificate in trustStore of Java (on the machine which the import/export utility is being run) will resolve this issue. Generally, Network/IT Infra team knows how to resolve the certification issue. We request the user to contact their IT Infra team to resolve this issue.

...

  • You need to add the certificate to the trustStore file of the used JVM located at - 

    Highlight
    colorlime

    %JAVA_HOME%\lib\security\cacerts

    .

  • First, you can check if your certificate is already in the trustStore by running the following command: 

    Highlight
    colorlime

    keytool -list -keystore "%JAVA_HOME%/jre/lib/security/cacerts


  • If your certificate is missing you can get it by downloading it from your Jira instance URL and add it to the trustStore with the following command:

    Highlight
    colorlime

    keytool -import -noprompt -trustcacerts -alias <AliasName> -file   <certificate> -keystore <KeystoreFile> -storepass <Password>


Additionally, refer below Articles from Atlassian to troubleshoot this issue.

https://confluence.atlassian.com/kb/ssl-and-application-link-troubleshooting-guide-719095282.html

https://confluence.atlassian.com/kb/unable-to-connect-to-ssl-services-due-to-pkix-path-building-failed-error-779355358.html