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

Mahesh111
Tera Contributor

@Prabu Velayutha 

Can you access the API end point through postman?

No. we can't access the endpoint via postman as the network team has restricted the endpoint access for it. They have provided the endpoint access to servicenow IP only. 

 

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

The endpoint is not accessible over internet.

Mahesh111
Tera Contributor

@Prabu Velayutha 

Can you access the API end point through postman?

No. we can't access the endpoint via postman as the network team has restricted the endpoint access for it. They have provided the endpoint access to servicenow IP only. 

 

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

The endpoint is not accessible over internet.

We use API key for the authentication.

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

@Prabu Velayutha Thank you so much for your help on this. I done the changes for provided system properties and its working fine. I observed one thing on docs saying that "com.glide.communications.httpclient.verify_revoked_certificate" to true is recommended value.

Making it to false impact any other integrations/functionalities? Any idea?

Hi Prabhu,

 

I am also getting the same error when try to hit endpoint without mid server. 

 

As mentioned I added/updated these two property but still the same issue. What may be other issue?

 

Request not sent to uri= https://*********************.com/integration/v1/Tickets/Subscribe : java.net.SocketTimeoutException: connect timed out

 

Thanks

Balaji Prusty