How To Determine and Print OpenSSL Version? – POFTUT

How To Determine and Print OpenSSL Version?


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.

Check and Print OpenSSL Version 
Check and Print OpenSSL Version 

Print OpenSSL Directory

We can print the OpenSSL directory with version -d option like below.

$ openssl version -d
Print OpenSSL Directory
Print OpenSSL Directory

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
Print Detailed Version Information
Print Detailed Version Information

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

LEARN MORE  How To Read RSA, X509, PKCS12 Certificates with OpenSSL?

Leave a Comment