Module: IOSCertEnrollment::SSL

Defined in:
lib/ios-cert-enrollment/ssl.rb

Class Method Summary collapse

Class Method Details

.certificateObject



10
11
12
13
# File 'lib/ios-cert-enrollment/ssl.rb', line 10

def certificate
  return @@certificate if @@certificate
  return @@certificate = OpenSSL::X509::Certificate.new(File.read(IOSCertEnrollment.ssl_certificate_path))
end

.keyObject



5
6
7
8
# File 'lib/ios-cert-enrollment/ssl.rb', line 5

def key
  return @@key if @@key
  return @@key = OpenSSL::PKey::RSA.new(File.read(IOSCertEnrollment.ssl_key_path))
end