From eae48e6d7ac052991560510b06e7c7ab78a201fe Mon Sep 17 00:00:00 2001 From: Azul Date: Thu, 31 Jan 2013 20:35:20 +0100 Subject: config key is not ca_cert_path anymore - client_ca_cert --- certs/app/models/client_certificate.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'certs/app') diff --git a/certs/app/models/client_certificate.rb b/certs/app/models/client_certificate.rb index b2b8c0d..9cde820 100644 --- a/certs/app/models/client_certificate.rb +++ b/certs/app/models/client_certificate.rb @@ -43,8 +43,8 @@ class ClientCertificate def self.root_ca @root_ca ||= begin - crt = File.read(APP_CONFIG[:ca_cert_path]) - key = File.read(APP_CONFIG[:ca_key_path]) + crt = File.read(APP_CONFIG[:client_ca_cert]) + key = File.read(APP_CONFIG[:client_ca_key]) openssl_cert = OpenSSL::X509::Certificate.new(crt) cert = CertificateAuthority::Certificate.from_openssl(openssl_cert) cert.key_material.private_key = OpenSSL::PKey::RSA.new(key, APP_CONFIG[:ca_key_password]) -- cgit v1.2.3