I have a pre-built OpenSSL library (libssl.a and libcrypto.a) which are being used for my C++ application. I don't know the version of the OpenSSL library.
Is there any way to get the version number from these pre-built libraries?
The -a option is provided to the version command which lists the version and other information. The “built on” the date when the OpenSSL command and library has built. The “platform” is the OpenSSL platform for built. The “options” is cryptoghay options like RC4, DES, Blowfish.
Run OpenSSL Open the command prompt using 'Windows' + 'r' then type 'cmd' to open command prompt. Type openssl version command on CLI to ensure OpenSSL is installed and configured on your Windows machine. You should see the version information if OpenSSL is configured correctly.
There is a string inside the library containing the version details called SSLEAY_VERSION - it looks like:
OpenSSL 0.9.5a 1 Apr 2000
OpenSSL 1.0.1e-fips 11 Feb 2013
You can find this from the binary library using strings and grep:
strings libcrypto.so | grep "^OpenSSL \S\+ [0-9]\+ \S\+ [0-9]\+"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With