I really wanted the -proxy flag on the openssl command. It’s not available in the provided openssl package (1.0.1 series), but it is in the 1.1.0 which is now the base package in Fedora. But for the Enterprise Linux users, you need to do a little bit of work to get it.
Download a pre-compiled package
You could just download the package from my copr. Save the contents of the .repo file [copr.fedorainfracloud.org] or use them from here.
name=Copr repo for stackrpms owned by bgstack15
yum install openssl110
And then the binary has been named openssl110
Download and compile the source
tar -zxf openssl-1.1.0i.tar.gz
sudo make install
To prevent an error that resembles:
/usr/local/bin/openssl: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
You have to provide the library files in a directory that the dynamic linker is looking in. There are multiple ways to tackle this.
Option 1: update library path
Add the directory containing the libcrypt.so.1.1 and similar files to the LD_LIBRARY_PATH environment variable.
Option 2: move library files to lib directory
Or just move the files to the main library location. On a x86_64 system, that would be:
mv libcrypto.so.1.1 libssl.so.1.1 /usr/lib64/
Internet search openssl s_client http proxy [duckduckgo.com]
openssl s_client using a proxy [stackoverflow.com]
How to update openssl 1.1.0 in Centos 6.9/7.0 [linuxscriptshub.com]