Generate CRL when revoking a certificate.
This commit is contained in:
parent
27e13e45d5
commit
cd2abf637d
3
main.py
3
main.py
|
@ -194,6 +194,9 @@ def delete_gateway(fqdn):
|
|||
r = os.system('easyrsa revoke {}'.format(fqdn))
|
||||
if r != 0:
|
||||
raise Ex(500, 'exit: {} cannot revoke'.format(r))
|
||||
r = os.system('easyrsa gen-crl')
|
||||
if r != 0:
|
||||
raise Ex(500, 'exit: {} cannot gen-crl'.format(r))
|
||||
except Ex as e:
|
||||
return jsonify({'status': 'error', 'message': str(e)}), e.getCode()
|
||||
|
||||
|
|
Loading…
Reference in New Issue