There are many methods for using APIs. In order to understand it better, lets take a look at “Authentication vs Authorization” post.
Generate an API Certificate
To establish SSL authentication, do the following steps:
- Click on the upper right-hand carrot and select Settings.
- Click on API tab, then select Create API Certificate.
- Select certificate permissions based on roles.
- Click Create.
- 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