Categories: API

Authenticating with the Apple Search Ads API

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!

Emre KARABULUT

Hi, I’m Emre KARABULUT, 29, and I am the owner of a small (but perfectly formed) design studio called Minimalist Art & Design based in Istanbul, which specialises in Blog and User Interface design. I help entrepreneurs and small business owners create a unique brand and online presence which gives them a powerful platform to reach out to their customers and markets.

Share
Published by
Emre KARABULUT

Recent Posts

How To Add Swap Space on Ubuntu 20.04 or 20.10

One way to guard against out-of-memory errors in applications is to add some swap space.…

4 years ago

Install Docker-Compose on Ubuntu 20.04 or 20.10

Docker Compose is a tool that allows you to run multi-container application environments based on…

4 years ago

Shopware 6 – Local installation in Ubuntu 20.04 or 20.10

After the creation of development environment your setup fulfills the Shopware 6 requirements. If you…

4 years ago

Shopware 6 – Docker installation in Ubuntu 20.04 or 20.10

After the creation of development environment your setup fulfills the Shopware 6 requirements. If you…

4 years ago

Shopware 6 – Installing System Requirements in Ubuntu 20.04 or 20.10

To create a development environment in fresh install of Linux - Ubuntu 20.04 (Focal Fossa)…

4 years ago

Install Docker on Ubuntu 20.04 or 20.10

Make sure your Ubuntu is up to date and patched. $ sudo apt update $…

4 years ago