Generate CRL when revoking a certificate.

This commit is contained in:
giomba 2023-04-08 18:51:32 +02:00
parent 27e13e45d5
commit cd2abf637d
1 changed files with 3 additions and 0 deletions

View File

@ -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()