Check that certificate is not revoked

This commit is contained in:
Karl Erik Õunapuu 2020-05-05 13:48:53 +03:00
parent 90f933a5a1
commit 0fa7fcc771
2 changed files with 5 additions and 2 deletions

View file

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