Revoke, and then delete a certificate

This functionality is manually tested. because of heavy reliance on
server configuration and bash commands.

Ruby OpenSSL library lacks a good way to manage revocation list
programatically, which would be the best option to work with. We might
still use command line tools in the end.
This commit is contained in:
Maciej Szlosarczyk 2018-09-18 17:49:12 +03:00
parent 98a95ec592
commit 240bcf7911
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
2 changed files with 2 additions and 1 deletions

View file

@ -28,7 +28,7 @@ module Admin
end
def destroy
if @certificate.destroy
if @certificate.revoke! && @certificate.destroy
flash[:notice] = I18n.t('record_deleted')
redirect_to admin_api_user_path(@api_user)
else