mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
This commit is contained in:
parent
1e98de3e7a
commit
2324fd2ceb
1 changed files with 2 additions and 3 deletions
|
@ -13,9 +13,8 @@ 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'])
|
||||
if ENV['cert_path'].nil?
|
||||
logger.error('webclient cert (cert_path) missing, registrar epp/repp disabled')
|
||||
end
|
||||
fail 'webclient cert (cert_path) missing, registrar epp/repp disabled' unless ENV['cert_path'].present?
|
||||
|
||||
server_md5 = Certificate.parse_md_from_string(File.read(ENV['cert_path']))
|
||||
if client_md5 != server_md5
|
||||
epp_errors << {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue