I'm using Debian (Stretch). Here openssl version returns:
OpenSSL 1.1.0f 25 May 2017 (Library: OpenSSL 1.1.0-pre6-dev xx XXX xxxx)
How can I update the "Library" used for OpenSSL (1.1.0-pre6-dev) to a most recent version since
apt-get install openssldoes not seem to help?On a different server,
openssl versionreturns "OpenSSL 1.1.0g 2 Nov 2017 (Library: OpenSSL 1.1.0f 25 May 2017)": how is that possible that the version library used is not the same as the package installed?
Update 1
apt-cache policy openssl libssl1.1 output is:
openssl:
Installed: 1.1.0f-3+deb9u1
Candidate: 1.1.0f-3+deb9u1
Version table:
1.1.0f-3+deb9u1 500
500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
100 /var/lib/dpkg/status
1.1.0f-3 500
500 http://debian.mirrors.ovh.net/debian stretch/main amd64 Packages
libssl1.1:
Installed: 1.1.0f-5
Candidate: 1.1.0f-5
Version table:
1.1.0f-5 100
100 /var/lib/dpkg/status
1.1.0f-3+deb9u1 500
500 http://security.debian.org/debian-security stretch/updates/main amd64
Packages
1.1.0f-3 500
500 http://debian.mirrors.ovh.net/debian stretch/main amd64 Packages
Update 2
It appears there are two versions of openssl installed:
usr/local/ssl/bin/openssl version returns OpenSSL 1.0.2h 3 May 2016
usr/bin/openssl version returns OpenSSL 1.1.0f 25 May 2017 (Library: OpenSSL 1.1.0-pre6-dev xx XXX xxxx)
which openssl returns /usr/bin/openssl
ldd $(which openssl) returns
linux-vdso.so.1 (0x00007fff3b074000)
libssl.so.1.1 => /usr/local/lib/libssl.so.1.1 (0x00007f4ec0de0000)
libcrypto.so.1.1 => /usr/local/lib/libcrypto.so.1.1 (0x00007f4ec095b000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f4ec0757000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f4ec053a000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4ec019b000)
/lib64/ld-linux-x86-64.so.2 (0x00007f4ec12f9000)
apt-cache policy openssl libssl1.1output? (Please edit your question to add the information.) Stretch only has 1.1.0f, but that’s newer than 1.1.0-pre6.which opensslandldd $(which openssl)output? It looks like there’s another version of both theopenssltool and thelibssllibrary installed.