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

Himanshu Dubey
Giga Guru

Thank you Himanshu,
I inserted the certificate in the System Definition > Certificates as said in the link above you posted, but still got the error calling the api, even if the button Validate Stores/Certificates return Valid trust_store as you can see in the screenshoot.

find_real_file.png

Any idea what's I'm doing wrong?

Nicol_
Giga Contributor

Update:
I forgot to say that after adding the certificate I got this new error trying to do the REST api call

find_real_file.png

Nicol_
Giga Contributor

Is it possible to disable SSL?
I try this but nothing change:

https://docs.servicenow.com/bundle/orlando-platform-administration/page/administer/security/reference/disable-outbound-ssl.html

Nicol_
Giga Contributor

Was the certificate had not the Subject Alternative Name (SAN) parameter with the matching IP address.

Now I got this error:

org.apache.commons.httpclient.HttpException: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

maybe there is something wrong again with the new certificate.