Module: Appium::Ios::Xcuitest::Certificate

Defined in:
lib/appium_lib/ios/xcuitest/command/certificate.rb

Instance Method Summary collapse

Instance Method Details

#install_certificate(cer_file:) ⇒ Object

Generates Apple’s over-the-air configuration profile for certificate deployment based on the given PEM certificate content. developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/iPhoneOTAConfiguration/Introduction/Introduction.html github.com/appium/appium-xcuitest-driver/pull/652

Examples:


install_certificate cer_file: "path/to/cert.cer"

Parameters:

  • cer_file (string)

    The content of the certificate file.



32
33
34
35
36
# File 'lib/appium_lib/ios/xcuitest/command/certificate.rb', line 32

def install_certificate(cer_file:)
  args = { content: Base64.encode64(cer_file) }

  @driver.execute_script 'mobile: installCertificate', args
end