Refactor ssl to dynamically introspect ssl version from openssl