Install openssl-1.1.0 on CentOS7
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.
[bgstack15-stackrpms]
name=Copr repo for stackrpms owned by bgstack15
baseurl=https://copr-be.cloud.fedoraproject.org/results/bgstack15/stackrpms/epel-7-$basearch/
type=rpm-md
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://copr-be.cloud.fedoraproject.org/results/bgstack15/stackrpms/pubkey.gpg
repo_gpgcheck=0
enabled=1
enabled_metadata=1
Install with:
yum install openssl110
And then the binary has been named openssl110
Download and compile the source
wget https://www.openssl.org/source/openssl-1.1.0i.tar.gz
tar -zxf openssl-1.1.0i.tar.gz
cd openssl-1.1.0i
./config
make
sudo make install
To prevent an error that resembles:
/usr/local/bin/openssl version
/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.
export LD_LIBRARY_PATH=/usr/local/lib64:${LD_LIBRARY_PATH}
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/
References
Weblinks
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]
Comments