Error when I try to connect to a rest api

Isaac Vicentini
Mega Sage
Mega Sage

Hi experts,

 

When trying to connect with a specific Rest API I'm getting the following return:

Request not sent to uri= https://gxxx-xx.xxx.com.br/xxxx/axxxi/xxxxxx: org.apache.commons.httpclient.HttpException: Session contains no certificates - Untrusted

 

find_real_file.png

The API is working and I only get this error when I try to connect from Servicenow.

NOTE: I AM NOT USING MID SERVER FOR THIS

 

Would anyone know the solution to this?

 

Regards,
Isaac

 

 


Best regards,

Isaac Vicentini
MVP 2025


If my answer was helpful, mark it as Helpful or Accept as Solution.

1 ACCEPTED SOLUTION

Saurav11
Kilo Patron
Kilo Patron

Hello,

Please set the property com.glide.communications.httpclient.verify_hostname to false.

You may also lie to look at the below article:-

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0851908

Please rmark answer correct/helpful based on impact.

Thanks.

View solution in original post

12 REPLIES 12

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Are you able to reach that endpoint from SOAP UI tool or Postman tool?

Regards
Ankur

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

Yes.


Best regards,

Isaac Vicentini
MVP 2025


If my answer was helpful, mark it as Helpful or Accept as Solution.

Hi,

is your ServiceNow instance behind firewall or can be publicly accessed?

Regards
Ankur

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

The instance can be easily accessed with a local account


Best regards,

Isaac Vicentini
MVP 2025


If my answer was helpful, mark it as Helpful or Accept as Solution.