Method: Lowdown::Mock.certificate

Defined in:
lib/lowdown/mock.rb

.certificate(app_bundle_id) ⇒ Certificate

Generates a Certificate configured with a self-signed Universal Certificate.

Parameters:

  • app_bundle_id (String)

    the App ID / app Bundle ID to encode into the certificate.

Returns:

  • (Certificate)

    a Certificate configured with a self-signed certificate/key pair.


51
52
53
# File 'lib/lowdown/mock.rb', line 51

def self.certificate(app_bundle_id)
  Certificate.new(*ssl_certificate_and_key(app_bundle_id))
end