The CreatorCon Call for Content is officially open! Get started here.

Help on REST with Error:: org.apache.commons.httpclient.HttpException: SSLPeerUnverifiedException

dundi
Kilo Contributor

Hi

I'm using POST method and I need to get 200 response and a json data. But I facing the following issue

Selection_067.png

It is working fine in other instance when the same headers with no authentication are given.

Thanks in advance

Regards

Dundi Vinayak

chirag.bagdaictomasijoshnerius

1 ACCEPTED SOLUTION

Sami S_
ServiceNow Employee
ServiceNow Employee

Hi Dundi,



You can set the following property to false, this will cause the HTTPClient to not make the hostname verification against the ssl certificate provided.



"com.glide.communications.httpclient.verify_hostname"   >> false



Hope it will solve your issue


View solution in original post

15 REPLIES 15

dundi
Kilo Contributor

Hi Sami


Thanks it worked!!, besides can you give me brief on why that error has occurred?



Thanks in advance


Dundi Vinayak


Thank you! Thank you! Thank you! Thank you! Thank you!

Deepali5
Tera Contributor

How can I set this property

"com.glide.communications.httpclient.verify_hostname"   >> false

I am new to SN. Where are the properties

THank you

You may find this page helpful: Create a system properties module | ServiceNow Docs

Don't ask my why we don't have this module by default. 🙂

Here's another way to do it if you don't want to create a module:

Add a system property

Hello @Sami S. ,

 

Could you please let me know where I can find this property of HTTP client?

THank you in advance!