EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB47483: How to convert a .P12 certificate and key file into a .PEM push notification certificate for deployment on MicroStrategy Intelligence Server


Community Admin

• Strategy


The following steps are necessary in order to prepare Apple's push certificate for deployment on MicroStrategy Intelligence Server. It is assumed a push certificate has already been downloaded and added to the Keychain Access assistant on OSX.

The following steps are necessary in order to prepare Apple's push certificate for deployment on Strategy Intelligence Server 9.4.x-10.x. It is assumed a push certificate has already been downloaded and added to the Keychain Access assistant on OSX.
 
1. Export certificate and private key from Keychain Access.
a. Select login on the left hand menu. Expand the downloaded certificate as seen on the screenshot below: 

ka04W00000148EMQAY_0EM440000002GVe.png

 
 
b. Export certificate and private key separately. First, export the certificate by right-clicking it and choosing "Export".
c. Select a name (e.g. apns-cert.p12) and choose .p12 as format.
d. When prompted for a password, leave it blank. When prompted for a system password, provide your OSX user password.
e. Perform steps b-d for the private key. Select a name (e.g. apns-key.p12)
 
2. Converting .p12 Certificate and .p12 Private Key files into a single .pem file. Execute the following commands in Terminal after navigating to the folder containing both, the certificate .p12 and key .p12 files:
 
a. Convert certificate .p12 file into .pem file


openssl pkcs12 -clcerts -nokeys -out apns-cert.pem -in apns-cert.p12

 
When prompted for a password, simply press enter since no password should have been given when exporting from keychain.
  
b. Convert key .p12 file into .pem file:
 

openssl pkcs12 -nocerts -out apns-key.pem -in apns-key.p12

  
When prompted for a password, simply press enter since no password should have been given when exporting from keychain. When prompted to "Enter PEM pass phrase", enter pass phrase of your choice, e.g. 1234.
 
 
c. Remove encryption from key .pem file:
 

openssl rsa -in apns-key.pem -out apns-key-noenc.pem

  
Enter pass phrase from previous step when prompted to "Enter pass phrase".
 
 
d. Merge certificate and key .pem file into one single .pem file:
 

cat apns-cert.pem apns-key-noenc.pem > apns-prod.pem

 
Deploy the .pem push notification certificate file on Strategy Intelligence Server as outlined in KB35792: How to enable Alert Push Notification when using MicroStrategy Mobile 9.0.2 and later
Third Party Software Installation Warning:
The third-party product(s) discussed in this technical note is manufactured by vendors independent of Strategy. Strategy makes no warranty, express, implied or otherwise, regarding this product, including its performance or reliability.


Comment

0 comments

Details

Knowledge Article

Published:

May 31, 2017

Last Updated:

May 31, 2017