- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2022 09:32 AM
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
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
MVP 2025 ✨
Solved! Go to Solution.
- Labels:
-
IntegrationHub
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2022 10:24 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2022 06:57 PM
No, it's just a direct request
MVP 2025 ✨
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2022 02:14 PM
I found the answer in a Servicenow docs:
"The Now Platform only trusts certificates that it can verify against the JVM certificate store. Self-signed and enterprise-signed certificates are not trusted.
By default, the com.glide.communications.trustmanager_trust_all property is set to false."
I performed a test setting the property to true and the API connection worked without errors.
I will analyze if it will be possible to include the certificate in the API as it is the most appropriate at the moment.
Reference: Certificate Trust
https://docs.servicenow.com/bundle/rome-platform-administration/page/administer/security/reference/certificate-trust.html
MVP 2025 ✨
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2022 10:27 AM
I found the answer in a Servicenow docs:
"The Now Platform only trusts certificates that it can verify against the JVM certificate store. Self-signed and enterprise-signed certificates are not trusted.
By default, the com.glide.communications.trustmanager_trust_all property is set to false."
I performed a test setting the property to true and the API connection worked without errors.
I will analyze if it will be possible to include the certificate in the API as it is the most appropriate at the moment.
Reference: Certificate Trust
https://docs.servicenow.com/bundle/rome-platform-administration/page/administer/security/reference/certificate-trust.html
Thanks to everyone who helped in any way.
MVP 2025 ✨