MID Server OCSP Check and MID Server Proxy

panda1
Kilo Guru

I use RESRMessage to call external rest API in ServiceNow、Used MID Server

The following error has occurred:

The request failed: Request not sent to uri= https://xxxx.xxxxx.jp/_apis/projects/?api-version=6.0 : org.apache.commons.httpclient.HttpException: The host did not accept the connection within timeout of 10000 ms *.xxxx.jp

 

I have checked the article below

MID Server Connectivity Issues due to OCSP failures - Known Error (servicenow.com)

When I turned off OCSP check, I received 200 response .But this is not the recommended method。

 I noticed that it is necessary to allow access to this link(http://ocsp.entrust.net/)

After using the proxy on the host where my MID Server is located, the link can be accessed normally.

So I added a proxy in the properties of MID Server 

glide.http.proxy_host

glide.http.proxy_port

But after adding it, the URL of the REST API cannot be accessed

The URL cannot be accessed using a proxy in my environment  ( xxxx.xxxxx.jp)

Is there a way for MID Server to use a proxy to access OCSP related URLs, but to access certain specific URLs without using a proxy

Or is there any other way to solve the problem

 

 

 

 

6 REPLIES 6

yes.
Two solutions:
1.disable OCSP - Can be used as a temporary solution or to determine if it is an OCSP issue
2.ensure the server where the MID Server is located can access the OCSP Server.
       set up firewall whitelists, network proxies, etc.

Elinsoid
Giga Contributor

Have you solved this OP? You might want to try different proxies. You can even buy cheap proxy from lightningproxies that will work better for you.