Commit 9a790c66 authored by ale's avatar ale

Add digest field for crl exports

parent e9c1cb5e
......@@ -133,7 +133,8 @@ class CA(object):
time.strftime('%Y%m%d%H%M%SZ', time.gmtime(stamp)))
crl.add_revoked(revoked)
self.storage.set_crl(
crl.export(self.ca_crt, self.ca_key, crypto.FILETYPE_PEM, 30))
crl.export(self.ca_crt, self.ca_key, crypto.FILETYPE_PEM, 30,
digest='sha256'))
self._load_crl()
def _load_crl(self):
......@@ -142,7 +143,8 @@ class CA(object):
# Create an empty CRL.
crl = crypto.CRL()
self.crl_data_pem = crl.export(self.ca_crt, self.ca_key,
crypto.FILETYPE_PEM, 30)
crypto.FILETYPE_PEM, 30,
digest='sha256')
self.storage.set_crl(self.crl_data_pem)
# Re-read the CRL data in DER and PEM formats.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment