Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to determine version of openssl library?

Tags:

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?

like image 626
Naseef Chowdhury Avatar asked Apr 27 '14 07:04

Naseef Chowdhury


People also ask

How do I find my OpenSSL library version?

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.

What version of OpenSSL do I have Windows?

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.


1 Answers

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]\+"
like image 111
JohnTESlade Avatar answered Oct 04 '22 12:10

JohnTESlade