summaryrefslogtreecommitdiff
path: root/certs
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-01-31 20:35:20 +0100
committerAzul <azul@leap.se>2013-01-31 20:35:20 +0100
commiteae48e6d7ac052991560510b06e7c7ab78a201fe (patch)
tree0f6430301ee079bf04703eb643d2c2ffb2ba9ef7 /certs
parent1bef299f60d742abb3a1b1db7fb6e6021f11ece2 (diff)
config key is not ca_cert_path anymore - client_ca_cert
Diffstat (limited to 'certs')
-rw-r--r--certs/app/models/client_certificate.rb4
1 files changed, 2 insertions, 2 deletions
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])