mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
Check that certificate is not revoked
This commit is contained in:
parent
90f933a5a1
commit
0fa7fcc771
2 changed files with 5 additions and 2 deletions
|
@ -116,6 +116,7 @@ class Certificate < ApplicationRecord
|
|||
-revoke #{crt_file.path} -key '#{ENV['ca_key_password']}' -batch")
|
||||
|
||||
if err.match(/Data Base Updated/) || err.match(/ERROR:Already revoked/)
|
||||
self.revoked = true
|
||||
save!
|
||||
@cached_status = REVOKED
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue