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

Fix acme_revocation key file bug

This commit is contained in:
Jakub Warmuz
2014-12-09 22:06:52 +01:00
parent b5a51de16b
commit 8bf677ff3b

View File

@@ -207,10 +207,11 @@ class Client(object):
"""
cert_der = M2Crypto.X509.load_cert(cert["backup_cert_file"]).as_der()
with open(cert["backup_key_file"], 'rU') as backup_key_file:
key = backup_key_file.read()
revocation = self.send_and_receive_expected(
acme.revocation_request(cert_der, cert["backup_key_file"]),
"revocation")
acme.revocation_request(cert_der, key), "revocation")
display.generic_notification(
"You have successfully revoked the certificate for "