mcm: revokation
- Bug fix for revokation procedure - Increased CRL (Certificate Revocation List) expiration from 7 days to 365
This commit is contained in:
@@ -195,7 +195,7 @@ def handle_renew_begin(device_id):
|
||||
Only devices that already hold an issued, non-revoked cert get one, so
|
||||
strangers can't make the server accumulate nonces. A device that gets no
|
||||
answer should fall back to an ordinary enrollment request."""
|
||||
if device_id in store.list_revoked():
|
||||
if store.is_revoked(device_id):
|
||||
log.info("renewal challenge refused for %s: device is revoked", device_id)
|
||||
return
|
||||
if device_id not in store.list_issued():
|
||||
@@ -237,7 +237,7 @@ def handle_renew(device_id, csr_pem, nonce, signature_b64, meta):
|
||||
log.info("renewal from %s falling back to manual approval: %s", device_id, why)
|
||||
store.add_pending(device_id, csr_pem, meta)
|
||||
|
||||
if device_id in store.list_revoked():
|
||||
if store.is_revoked(device_id):
|
||||
fall_back_to_manual("device is revoked")
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user