OAG Connect To URL Fails When Passing HTTPS Requests Through a Proxy Requiring Authentication (Doc ID 2147661.1)

Last updated on JUNE 10, 2016

Applies to:

Oracle API Gateway - Version 11.1.2 and later
Information in this document applies to any platform.

Symptoms

An Attemptis being made to forward a request to an SSL URL through a proxy server.  This proxy requires a username and password for passthrough.

When setting up the proxy and providing the correct authentication, the request is not being forwarded successfully.

The proxy returns a message that the request is being blocked because the authorization is not being attempted. The message being returned:

Your credentials could not be authenticated: "Credentials are missing.". You will not be permitted access until your credentials can be verified.

The trace log shows the following:

DATA [1641] Calling write log on class com.vordel.log.rolloverfile.TextRollOverLogger
DATA [1641] Wrote log message of size 179
DATA [1641] }
DEBUG [1641] run filter [Connect to URL for External WebService] {
DEBUG [1641] optimise write for vordelDoc com.vordel.jaxprovider.libxml.DocumentImpl@198f82
DEBUG [1641] ... to non-vordel output stream
DEBUG [1641] handle type application/octet-stream with factory class com.vordel.mime.RawBody$Factory
DEBUG [1641] Adding MessageListener: com.vordel.circuit.net.ConnectionProcessor$1@1cbd9a
DEBUG [1641] get connection to host xxx.xxx.xxx.xxx port 443 scheme https
DEBUG [1641] routing via proxy: xxx.xxx.xxx.xxx
DEBUG [1641] Proxy-Authorization header set with user name mrajpconf
DEBUG [1641] Resolved xxx.xxx.xxx.xxx:8013 to:
DEBUG [1641] xxx.xxx.xxx.xxx:8013
DEBUG [1641] Trying to acquire connection to: xxx.xxx.xxx.xxx:8013 , connection count: 0, max connections:128
DEBUG [1641] Connection to: xxx.xxx.xxx.xxx:8013 acquired, connection count: 1
DEBUG [1641] connected to xxx.xxx.xxx.xxx:8013
DEBUG [1641] new connection d39360, settings source service-wide defaults (allow 1.1=no, idleTimeout=300000, activeTimeout=21600000, maxConnections=128, contentLength: req=no, res=no)
DEBUG [1641] push SSL protocol on to connection
DATA [1641] [SSL_connect, 5000] before/connect initialization.
DATA [1641] [SSL_connect, 1210] SSLv2/v3 write client hello A.
ERROR [1641] [SSL_connect, 1220]: error - SSLv2/v3 read server hello A.
DEBUG [1641] Decrementing connection count for connection: xxx.xxx.xxx.xxx:8013, connections count: 1
DEBUG [1641] destroying connection d39360 with transaction 0
DEBUG [1641] delete connection d39360
ERROR [1641] transient failure connecting to remote: SSL protocol error
DEBUG [1641] connection processor made 1 attempts to transact
DEBUG [1641] } = 0, filter [Connect to URL for External WebService]
DEBUG [1641] Filter [Connect to URL for External WebService] completes in 5 milliseconds.
DATA  [1641] LogManager logging {
DATA  [1641] Logging at Failure
DATA  [1641] Calling write log on class com.vordel.log.trace.TraceLogg
...

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms