Switch to pyOpenSSL for certificate retrieval