Facing an issue with REST message call

Mahesh111
Tera Contributor

Hello Team,

 

I am calling the endpoint via REST outbound message from ServiceNow however I am getting below error.

We have added and validated the required certificate in certificates table.

Request not sent to uri=" org.apache.commons.httpclient.HttpException: java.security.cert.CertificateException: No subject alternative names matc"

 

we don't have the MID server over here. We directly call the endpoint from ServiceNow. Please guide us on this.

1 ACCEPTED SOLUTION

Try setting the system property "com.glide.communications.httpclient.verify_hostname" to false.

 "com.glide.communications.httpclient.verify_revoked_certificate" to false

If you do not find the property create it and set value and test

View solution in original post

10 REPLIES 10

Prabu Velayutha
Mega Sage
Mega Sage

Update the Mid Server Certificate check policy for internet and intranet. Set the certificate chain check, host check and revocation check to false and try again. Please the attached screenshot for reference.

Please accept solution and click helpful if it solves your issue.

@Prabu Velayutha  Thank you so much for your reply on this. We are not using the MID server in our setup. We are directly hitting the endpoint from the ServiceNow via REST outbound message. Please let me know if you have any information on this.

Prabu Velayutha
Mega Sage
Mega Sage

Hi Mahesh, Could you please answer the below questions

Can you access the API end point through postman?

Are you sure this End Point accessible over internet or it is an intranet API.

What is the authentication type?

We have API key as a authentication type.