Help on REST with error : Request not sent to uri = :org.apache.commons.httpclient.HttpException: javax.net.ssl.SSLPeerUnverifiedException: peer not

sriramsaishasha
Tera Contributor

Hi,

In Rest message I'm using POST method and I need to get 200 response. But I facing the following issue

HTTP Status: 0

Error Message: "Request not sent to uri= : org.apache.commons.httpclient.HttpException: javax.net.ssl.SSLPeerUnverifiedException: peer not" 

Error code: 1

 

Could anyone please help in to resolve the above issue.

Thanks in advance.

 

Regards,

Shashank

8 REPLIES 8

@sriramsaishashank 

Hope you are doing good.

Did my reply answer your question?

Would you mind marking the best matching answer as correct and helpful, to close this thread?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hello Ankur,

 

i was getting a different error 

"org.apache.commons.httpclient.HttpException: Session contains no certificates - Untrusted"

however, setting this property to false worked for me.

I think one more thing to comment on is that you are disabling yet another security step on your instance, so think twice before doing this.

Indeed Karinamel, we are reviewing this with our customer security team.