1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

crazy M2Crypto bug: you have to get_pubkey().get_rsa() not just get_pubkey()

This commit is contained in:
Seth Schoen
2012-07-13 19:29:36 -07:00
parent 0da690afb2
commit 5b43540452

View File

@@ -59,7 +59,7 @@ def pubkey(csr):
@return: a string of the PEM-encoded public key
"""
req = M2Crypto.X509.load_request_string(csr)
return req.get_pubkey().as_pem(None)
return req.get_pubkey().get_rsa().as_pem(None)
def subject(csr):
"""