mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 21:25:39 +02:00
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:
parent
98a95ec592
commit
240bcf7911
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -127,6 +127,7 @@ class Certificate < ActiveRecord::Base
|
|||
|
||||
self.class.update_registry_crl
|
||||
self.class.reload_apache
|
||||
self
|
||||
end
|
||||
|
||||
class << self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue