Commit 74b93602 authored by Alain Takoudjou's avatar Alain Takoudjou

prevent to create new Revocation with empty serial when revokeCertificate is called with crt_id

parent 60d4af7f
......@@ -347,7 +347,7 @@ class Storage(object):
" since %r day(s)." % (serial, -1*expire_in.days))
revoke = Revocation(
serial=serial,
serial=cert.serial,
creation_date=datetime.utcnow(),
reason=reason,
crt_expire_after=cert.expire_after
......
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