Certificate authentication in Anaplan is a great way to ensure that OneCloud Chains run smoothly without interruption from authentication errors due to various factors such as password resets and mandatory password updates. OneCloud needs to integrate with Anaplan just like anyone else. This guide walks through how to procure and configure a third party certificate.
📓 System Requirements
All of the command-line instructions in this guide are compatible with either Linux/Unix/macOS. This requires that you have the latest OpenSSL package installed. These requirements are only necessary if you are going to create your own CSR (Certificate Signing Request) and private key on Linux/Unix/macOS based systems.
Designated integration User(s) in Anaplan
An integration user (aka "service account") is not necessary, but every user required to use certificate authentication needs to go through this process. Please note that a designated service account is preferable so that the Connection details are not tied to any given person.
Designated CA (Certificate Authority) that will sign the CSR (Certificate Signing Request)
Send someone's CSR to a CA and they will sign the request and return a valid certificate CA Signed certificate.
Anaplan References to Create a Certificate
Anaplan has provided the following references to assist with creating a certificate.
The following steps compliment the previous references as well as provides additional steps to create the required Java Key Store (JKS). The demonstration below uses the computer's command-line interface to create your own CSR and private key.
Step 1: Procure your CA Certificate from Sectigo
Navigate to Sectigo and purchase a Personal Authentication Certificate. The following link has been preconfigured to support Anaplan's certificate requirements:
Under User Details, complete the fields to specify Email Address, Forename, Surname.
Under Advanced Security Options, accept the pre-populated default values.
Under Login Credentials, set a Username, and Password.
Confirm the password.
Click Place Order.
📓 Get a 3-year certificate
It is recommended that a 3-year certificate is purchased to streamline this process.
Once the certificate fee is paid, Sectigo sends an email to the specified email address with instructions to install the certificate to either Firefox or Internet Explorer. In the email, there will be a URL link (see sample below). Ensure that this link is opened in either Firefox or Internet Explorer.
📓 .p12 vs pfx files
Certificates can be exported from Firefox or Internet Explorer. When exported from Firefox, the certificate will be in a ".p12" format versus exporting from Internet Explorer, it will be in a ".pfx" format.
Once this step is complete, proceed to Step 2.
Step 2: Extract the Sectigo Certificate to a .p12 format
These instructions use Firefox to export the newly installed certificate in .p12 format.
Navigate to Tools ➡️ Options ➡️ Privacy & Security
Alternatively, on a macOS Firefox ➡️ Preferences ➡️ Privacy & Security.
Scroll down to Certificates and click View Certificates
Click the Your Certificates tab
Select your certificate
Click Backup and save the certificate as a memorable name in PKCS12 Files format.
Define a password for the private key.
With the certificate in a .p12 format, proceed to Step #3.
Step 3: Extract the certificate
If using macOS or Linux, open a terminal window and navigate to the directory where the certificate in the .p12 format was downloaded and saved.Open SSLIf using a Windows system, please install OpenSSL to complete the following steps.
Extract the certificate with the following syntax. Be sure to replace the - PATH TO EXPORTED P12 FILE - with the name of the saved certificate.
⬆️ 📓 This step will require the password that was established in the last step.
When prompted, enter the password for the certificate
Confirm the certificate was extracted by verifying the client_certificate.pem file is located in the output directory.
Extract Public Certificate - Linux/Unix
Windows requires the paths to the input (.p12) and output (.pem) files to be surrounded by double quotes ("). The sample Windows syntax is below.
Extract Public Certificate - Windows
Step 4: Isolate the Public Certificate
The client_certificates.pem file created in the previous step contains three certificates:
To Isolate the Public Certificate follow these steps:
Open the client_certificate.pem file in a text editor (not rich text editor like Microsoft Word)
Delete the first two certificates (the Root and Intermediate certificate) by scrolling down to the third instance of "-----BEGIN CERTIFICATE----- " and removing all text above that entry. NOTE: Do not remove the certificate content between the "-----BEGIN CERTIFICATE----- " or after "-----END CERTIFICATE-----".
Save the file as ca_certificate.pem. This file will be uploaded to Anaplan by the Tenant Administrator.
The ca_certificate.pem file will be used in Step 6 that follows below. Be sure to make a note of the fully qualified path to this file.
To register your Certificate follow the Anaplan Documentation on how to manage your Certificate.
Step 5: Create a Private Key
📓 The password that was established in Step 2 will be required for several aspects of this step. Be ready to enter it upon request.
Create a private key to be used in combination with the public certificate created in the previous two steps.
From the terminal window or using OpenSSL, execute the following command. Be sure to replace them with the name of the saved certificate.
Create an Unencrypted Private Key - Linux/Unix
Create an Unencrypted Private Key - Windows
The private_key.pem file will be used in Step 6 that follows below. Be sure to make a note of the fully qualified path to this file.
Step 6: Create a Java Key Store
A Java Key Store (JKS) needs to be created to house the private key. The JKS is created by using the public key, ca_certificate.pem, created in Step 4 and the private key, private_key.pem created in Step #5. Run the following Commands to create a keystore file.
📓 Remember the Inputs!
Running the following command prompts a password request. Make sure to keep this password safe and in a place it can be referenced. If the password is forgotten, these steps will need to be repeated. The same can be said of the alias. Replace your_alias with an alias that's easy to remember and keep it in a safe place! Both the password created and the alias to use this certificate and keystore in OneCloud.
The first step is to create a keystore bundle in the .p12 format. Please provide an alias denoted by <PROVIDE ALIAS>.
📓 This step will require establishing and verifying a new password for the keystore bundle.
Create a keystore in the P12 format - Linux/Unix
Create a keystore in the P12 format - Windows
The second step is to create the actual Java Key Store (JKS), keystore.jks. In the area denoted by <PROVIDE JKS PASSWORD>, please use the same password from the previous step.
📓 This step will require the JKS password from the previous step to create the keystore bundle.
Keytool requires that the Java SDK is installed. The SDK can be downloaded from the Oracle website.
Create a JKS - Linux/Unix
Create a JKS - Windows
Step 7: Create an Anaplan Connection Supporting CA-Certificates
Using the OneCloud Connection Manager, please create a new Connection for Anaplan. Pay special attention to the areas highlighted in red. At this point, it is possible to use the OneCloud for Anaplan BizApp.
For additional information please see https://help.anaplan.com