mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 05:05:45 +02:00
fixup! follow styleguide
This commit is contained in:
parent
2324fd2ceb
commit
0924381473
1 changed files with 3 additions and 1 deletions
|
@ -13,7 +13,9 @@ module Epp
|
|||
webclient_request = ENV['webclient_ips'].split(',').map(&:strip).include?(request.ip)
|
||||
if webclient_request && !Rails.env.test? && !Rails.env.development?
|
||||
client_md5 = Certificate.parse_md_from_string(request.env['HTTP_SSL_CLIENT_CERT'])
|
||||
fail 'webclient cert (cert_path) missing, registrar epp/repp disabled' unless ENV['cert_path'].present?
|
||||
if ENV['cert_path'].blank?
|
||||
raise 'webclient cert (cert_path) missing, registrar (r)epp disabled'
|
||||
end
|
||||
|
||||
server_md5 = Certificate.parse_md_from_string(File.read(ENV['cert_path']))
|
||||
if client_md5 != server_md5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue