You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I want to send post https request via scriptrunner post function
I use this way to post http:
def http = new HTTPBuilder()
def result = http.get(uri:'http://external_server/Services/team/CloseFlowItem.aspx?taskid='+taskid)
When I replace http to https in URL, I get an error:
----
2022-04-25 08:22:21,171 ERROR [workflow.ScriptWorkflowFunction]: *************************************************************************************
2022-04-25 08:22:21,180 ERROR [workflow.ScriptWorkflowFunction]: Script function failed on issue: DBA-4590, actionId: 91, file: <inline script>
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
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:543)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:409)
----
What do I need to make request via HTTPS ?
Hi,
you need to add the certificat of the website to your java keystore.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.