This is for a homework assignment! I get the server\'s certificate using get_peer_certificate() and the calling dump_certificate to dump the certif
get_peer_certificate()
dump_certificate
crtObj = crypto.load_certificate(crypto.FILETYPE_ASN1, config.x509_certificate) pubKeyObject = crtObj.get_pubkey() pubKeyString = crypto.dump_publickey(crypto.FILETYPE_PEM, pubKeyObject)