mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 08:43:37 +02:00
Logging
This commit is contained in:
parent
2121aadc80
commit
2f83f4f7be
1 changed files with 1 additions and 0 deletions
|
@ -49,6 +49,7 @@ class ApiUser < User
|
|||
crt.split(' ').join("\n")
|
||||
crt = crt.gsub("-----BEGIN\nCERTIFICATE-----\n", "-----BEGIN CERTIFICATE-----\n")
|
||||
crt = crt.gsub("\n-----END\nCERTIFICATE-----", "\n-----END CERTIFICATE-----")
|
||||
logger.error(crt)
|
||||
cert = OpenSSL::X509::Certificate.new(crt)
|
||||
md5 = OpenSSL::Digest::MD5.new(cert.to_der).to_s
|
||||
logger.error(md5)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue