Simplify ssl_cert_type() by taking advantage of X509_get0_pubkey