I am trying to using the code from the above mentioned link for Patch method for rest call over Https but I am getting SSL error. However, using inbuild DevTest Rest step all the methods are working fine and I am not getting any SSL issue. I have not installed/configured any specific SSL certs DevTest, I believe is using default SSL certs only and handshake is successful.
Message: Sourced file: inline evaluation of: ``import okhttp3.MediaType; import okhttp3.OkHttpClient; import okhttp3.Request; . . . '' : Typed variable declaration : Method Invocation execute : at Line: 62 : in file: inline evaluation of: ``import okhttp3.MediaType; import okhttp3.OkHttpClient; import okhttp3.Request; . . . '' : .execute ( )
Target exception: 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
Attaching a complete stack trace.
|Any help will be much appreciated.|