There are many methods for using APIs. In order to understand it better, lets take a look at “Authentication vs Authorization” post.

Apple Search Ads API, requires requester to authenticate using an API certificate obtained from an Admin account through Apple Search Ads UI.

Generate an API Certificate

To establish SSL authentication, do the following steps:

  1. Click on the upper right-hand carrot and select Settings.
  2. Click on API tab, then select Create API Certificate.
  3. Select certificate permissions based on roles.
  4. Click Create.
  5. To download the API certificate, select Action, then Download.

Note: Certificates expire after 24 months (2 years)

How to create a PKCS#12 (.p12) File

Requester can use the downloaded certificate to establish two-way SSL authentication either independently such as PEM and Key or as PKCS#12 file which is converted by PEM and Key.

There are several methods to convert the received PEM file and private key file into PKCS#13 (.p12) file. Here is the OpenSSL command:

# Locate to folder which contains .pem and .key files
openssl pkcs12 -export -in <PEMFILE>.pem -inkey <PRIVATEKET>.key -out <FILENAME>.p12

Have Fun!

Share:

Leave a Reply

Your email address will not be published.