diff options
-rw-r--r-- | certs/app/models/client_certificate.rb | 4 | ||||
-rw-r--r-- | config/defaults.yml | 4 |
2 files changed, 4 insertions, 4 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]) diff --git a/config/defaults.yml b/config/defaults.yml index f5a7c07..cb8a627 100644 --- a/config/defaults.yml +++ b/config/defaults.yml @@ -1,7 +1,7 @@ dev_ca: &dev_ca - ca_key_path: "./certs/test/files/ca.key" + client_ca_key: "./certs/test/files/ca.key" + client_ca_cert: "./certs/test/files/ca.crt" ca_key_password: nil - ca_cert_path: "./certs/test/files/ca.crt" cert_options: &cert_options client_cert_lifespan: 2 |