Disable SSL certificate verification for a REST service
Hi Developers,
I'm using GetJSON content loader function available in TWX. Its throwing the below given error:
“Error:JavaException: javax.net.ssl.SSLPeerUnverifiedException: Host name 'xxx.com' does not match the certificate subject provided by the peer (CN=xxx, OU=xxx, O=xxx, L=xxx, ST=xxx, C=xxx)”
"ignoreSSLErrors" in the params of GetJSON service also doesn't seem to affect the result.
I tried the same call from postman and only when I turned off the “SSL Certificate Verification” in its settings I was able to get the json output.
So how can i pass the insecure tag along with the REST service from Thingworx or how to turn off the SSL verification setting on the platform. Also how to pass the request body using the GetJSON service.
Thanks and Regards,
Saran

