mirror of
https://github.com/internetee/registry.git
synced 2025-07-29 22:16:19 +02:00
Add certs control
This commit is contained in:
parent
d848675557
commit
7ec5c914bc
3 changed files with 17 additions and 4 deletions
|
@ -61,6 +61,8 @@ class ApiUser < User
|
|||
end
|
||||
|
||||
def pki_ok?(crt, com, api: true)
|
||||
p crt
|
||||
p com
|
||||
return false if crt.blank? || com.blank?
|
||||
|
||||
origin = api ? certificates.api : certificates.registrar
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue