While using certain tools that rely on the OpenSSL package, I was looking for a way to determine what the main directory for OpenSSL is on any given installation. This is particularly useful for finding where the main cert.pem file is. That location is different on various systems, and if OpenSSL has been compiled outside of a package, the
--openssldir option can be changed to something outside of the norm, further upsetting you.
In a shell, use the following command:
openssl version -d
In my case, on a RedHat derivative with the standard OpenSSL package, the response was: