Separate OpenSSL Cert parsing to a different method