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:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user