On 3/24/2019 19:33, Abdul Qoyyuum
wrote:
OpenSSL is not involved in that in any way so the fix and issue is not there. I am assuming that the original connection is to a "tunnel" on
the internal/external gateway. That is, connect to
<a.b.c.d:10443> and the gateway "twists" that to the
internal address on port 443, which is the usual HTTPS port (this
assumption is due to that looking like an HTTPS server from what
it returns.) This is a very common firewall/gateway function. The issue is that OpenSSL just created and maintained the SSL connection and data transport. The offending information isn't emitted by OpenSSL; it's emitted by the remote server code itself and OpenSSL simply transports it from one end to the other, encrypted. It thus must (and does) transport exactly, byte-by-byte, whatever it gets (in both directions.) The server code on the remote end could be programmed to not issue the header and body text, but if it generates a 301 the HTML header "Location:" MUST be returned with the new location by the HTML specifications so the application that connected (typically a browser) can issue a new request to the correct, redirected place. However it doesn't have to return an IP number and most servers do not because there frequently is more than one host and/or domain on a given IP number -- it could and should instead return a domain name (e.g. "https://www.example.com/images") -- but that header has to be there. The body text actually does not; it can be void and it's ok (that's not used by browsers, but is useful for humans if/when troubleshooting.) The issue is LIKELY that the host in question doesn't have a
reverse IP mapped for itself but that's web server and OS
dependent. It may also be that the hostname is not defined in the
server's configuration file. Without knowing what the web server
in question is all I can do there is guess as to exactly what is
missing, but in any event the issue is in the web server
application configuration and not OpenSSL. |
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature