Outbount rest api got ssl error

Nicol_
Giga Contributor

Hi!
I'm creating a ServiceNow application having the purpose to get some data via api from another platform and push that data inside tables.
Created the rest api message like this:
find_real_file.png

got this ssl error:

find_real_file.png

even if I've added the machine certificate to the SystemDefinitiion -> Certificate

find_real_file.png

Any idea what I'm doing wrong?

Thanks

1 ACCEPTED SOLUTION

Hi

You have to set below property false because the HTTPClient to not make the hostname verification against the ssl certificate provided.

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

 

Thanks

Himanshu

View solution in original post

16 REPLIES 16

Hi

You have to set below property false because the HTTPClient to not make the hostname verification against the ssl certificate provided.

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

 

Thanks

Himanshu

Thank you Himanshu, I add the property

find_real_file.png

but still have the same error calling the API.

I add it in the proper place?
Could depend on the scope of the app?

Nicol_
Giga Contributor

After changing the certificate and got:

org.apache.commons.httpclient.HttpException: java.security.cert.CertificateException: No subject alternative names matching IP address xxxxxxx found

I set com.glide.communications.httpclient.verify_revoked_certificate to false and everything works fine.

Thank you all for your help!

where can i set this property..can you please provide path of it.

 

thank you !

Supriya.

palanikumar
Mega Sage

Hi,

 

Set the following System property to false and see whether this resolves the issue:

com.glide.communications.httpclient.verify_hostname

 

Thank you,

Palani

Thank you,
Palani