Will installation of macports automatically install or update OpenSSL?
MacPorts will not replace your system-provided version of OpenSSL. If you install OpenSSL using MacPorts, it will do so in a separate prefix (by default /opt/local).

To check the version of the OpenSSL library, run /path/to/openssl version where /path/to/openssl is the path of the OpenSSL binary that corresponds to the library you want to check, e.g. /usr/bin/openssl for the system OpenSSL in /usr/lib/libssl.dylib and /opt/local/bin/openssl for the MacPorts OpenSSL in /opt/local/lib/libssl.dylib.

You can also check the OpenSSL library version directly using

$&gt; strings /path/to/libssl.dylib | grep -E '^OpenSSL'


e.g. for MacPorts:

$&gt; strings /opt/local/lib/libssl.dylib | grep -E '^OpenSSL'
OpenSSL 1.0.1i 6 Aug 2014


and for system OpenSSL:

$&gt; strings /usr/lib/libssl.dylib | grep -E '^OpenSSL'
OpenSSL 0.9.8y 5 Feb 2013