openssl: Establish a http connect behind a proxy


since openssl 1.1.0 it is possible to establish a HTTPs CONNECT connection to a (Web)server behind a http proxy.

Use the following syntax. Do not omit the port at the connect parameter.

michael@debdev ~ # openssl  s_client -proxy -connect -showcerts

For versions lower then 1.1.0 use proxytunnel to establish a connection to the proxy and open a local socket for the openssl connect.

michael@debdev ~ # proxytunnel -p -d -a 44433
michael@debdev ~ # openssl  s_client -connect localhost:44433 -showcerts


Advertisment to support

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.