OpenSSL is very long running project which have passed a lot of versions. Newer versions provides more features, bug fixes and security patches. For example in year 2014 a serious security hole Heart Bleed discovered in OpenSSL versions and affected OpenSSL libraries are defined as versions.Following versions was vulnerable to Hear Bleed.
- OpenSSL 1.0.1 trough 1.0.1f inclusive
- OpenSSL 1.0.1g is not vulnerable
So version is important part of the OpenSSL library.
Check and Print OpenSSL Version
We will use version
verb with the OpenSSL command like below.

Print OpenSSL Directory
We can print the OpenSSL directory with version -d
option like below.
$ openssl version -d

Print Detailed Version Information
We can print more detailed version information like following
- Built time
- Platform and Architecture like 32 bit or 64
- Options
- Compiler flags
$ openssl version -a

We can see in detailed version info that which cryptographic extensions and libraries are enabled like `-DSHA512 which specifies SHA512 is enabled.