Module: Cert::Certs
- Defined in:
- app/services/cert/certs.rb
Class Method Summary collapse
- .ca_cert ⇒ Object
- .ssl_client_cert ⇒ Object
- .ssl_client_key ⇒ Object
- .ueber_cert(organization) ⇒ Object
Class Method Details
.ca_cert ⇒ Object
7 8 9 |
# File 'app/services/cert/certs.rb', line 7 def self.ca_cert File.open(Setting[:ssl_ca_file], 'r').read end |
.ssl_client_cert ⇒ Object
11 12 13 |
# File 'app/services/cert/certs.rb', line 11 def self.ssl_client_cert @ssl_client_cert ||= OpenSSL::X509::Certificate.new(File.open(Setting['pulp_client_cert'], 'r').read) end |
.ssl_client_key ⇒ Object
15 16 17 |
# File 'app/services/cert/certs.rb', line 15 def self.ssl_client_key @ssl_client_key ||= OpenSSL::PKey::RSA.new(File.open(Setting['pulp_client_key'], 'r').read) end |
.ueber_cert(organization) ⇒ Object
3 4 5 |
# File 'app/services/cert/certs.rb', line 3 def self.ueber_cert(organization) organization.debug_cert end |