Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

SoapUI to scriptrunner rest endpoin

Pumper1 August 27, 2018

Hi,

I have configured rest endpoint (Scriptrunner endpoint) and when i try to send post request without keystore i have a HTTP/1.1 403. But when i try do send post with keystore i have 

  • Mon Aug 27 11:58:41 CEST 2018:INFO:Error getting response for [https://jiratest2.cu.com.pl.Priority:Request 1]; javax.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

how i can solve it?

1 answer

0 votes
Mauricio Karas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 28, 2018

Hey, Taras!

This could be an issue on the JVM truststore, you should add the certificate in order to connect with it using the keystore. The PKIX error that we're facing means that the JVM doesn't trust the secure service that JIRA is trying to connect to it. This is because the public SSL certificate from the service was not imported to the JVM cacerts file (truststore).

I'd like to provide a brief explanation below of how the SSL works in JIRA. Basically, we have two areas of SSL that can sometimes be confusing:

  • The Tomcat/Proxy certificate: this will be used to serve a secure connection to the client machines connecting to JIRA. This certificate is deployed on the proxy end or on the Tomcat server.xml file;
  • The JAVA Virtual Machine (JVM) cacerts file: this is the JAVA truststore where we should import the public SSL certificate from a secure service that JIRA is trying to connect to it. That will allow the JVM to trust on the secure service and establish the connection without giving the PKIX error.

To add the certificate please follow the procedure below:

  1. In your JIRA instance, go to Administration > System > System Info;
  2. Search for {{java.home}} and take note of the JAVA path;
  3. Follow our Connecting to SSL services guide to import the public certificate on the $JAVA_PATH/lib/security/cacerts file;
  4. Restart JIRA so the changes can take place.

Kind regards,
Maurício Karas

Suggest an answer

Log in or Sign up to answer