Getting Certificate Files

Applies to TestComplete 12.60, last modified on September 17, 2018

To instrument iOS applications from the TestComplete UI or from scripts, you need a number of certificate files:

  • the Apple WWDR file,

  • a developer certificate,

  • the PEM file,

  • a provisioning profile.

This topic contains instructions on how to obtain these files:

Requirements

In order for instrumentation to work correctly, the following conditions should be met:

  • The PEM file must contain public and private keys for the developer certificate you use.

  • The provisioning profile must belong to the developer, whose certificate and PEM file you are using, and must include the devices you will run your tests on.

Getting Apple WWDR Certification Authority File

The Apple Worldwide Developer Relations (WWDR) certificate links your development certificate to Apple, completing the trust chain for your application.

You can download the certificate from here:

http://developer.apple.com/certificationauthority/AppleWWDRCA.cer

Note: Alternatively, you can get this certificate from your Mac computer in the same way as the developer certificate. See below.

Getting Certificate Files

By Using the Certificate Exporter Utility

To get a developer certificate, the PEM file and a provisioning profile, you can use the Certificate Exporter utility that is shipped with TestComplete. The utility is in the <TestComplete>/Bin/Extension/iOS/CertificateExporter.zip archive. To get the files by using the utility:

  1. Unpack the archive on a Mac computer.

    Do not unpack the utility on a Windows machine. This will corrupt the utility.
  2. Run CertificateExporter.app. You will see a list of available provisioning profiles.

  3. Select a profile from the list. The utility will show you the assigned certificates in the list below.

  4. Select the certificate you want to export, click Export and specify the desired directory.

  5. If a dialog appears asking you to allow the utility to access your keychain, click Allow.

The Certificate Exporter utility

Click the image to enlarge it.

Manually

Getting a Developer Certificate and the PEM File

A developer certificate verifies that the application was created by a specific developer. The PEM file contains keys used to sign the application created by this developer.

To get a developer certificate and the PEM file, you will need a Mac computer with the certificate installed. The PEM file must contain keys for the developer certificate you want to export.

Getting a Developer Certificate

Getting the PEM File

Getting a Provisioning Profile

A provisioning profile is a collection of certificates that assign developers and devices to a development team, which allows using these devices for testing.

To perform testing with TestComplete, we recommend that you use the iOS App Development profile for your applications. In this case, you will be able to automate the deployment of the tested applications to your iOS devices and launching the applications on them with specific TestComplete scripting methods or keyword-test operations.

The provisioning profile must belong to the same developer as the certificate and PEM file.

You can download the provisioning file from Apple’s Member Center web site. Follow the instructions below.

Getting the Provisioning File

See Also

Preparing iOS Applications
Preparing Test Computers and TestComplete for iOS Testing
Preparing iOS Devices
Testing iOS Applications - Overview

Highlight search results