Andrew Fletcher published: 16 August 2018 1 minute read
To create a .pem file, is quick once you have your .p12 certificate. I won't go through the process regarding p12 file generation as there are many sites that outline these steps. If you cannot find a site that outlines this make a comment below and I'll point in the right direction.
Open the terminal and go to the path where you save the apns-cert.p12. where and follow the below command to generate the .PEM file.
The command below depends on the following two elements:
- Name of the .p12 file : {your-cert-file.p12} as apns-cert.p12
- Name of the .pem output file : {your-pem-file.pem} as apns-cert.pem
openssl pkcs12 -in {your-cert-file.p12} -out {your-pem-file.pem} -nodes -clcerts
Becomes...
openssl pkcs12 -in apns-cert.p12 -out apns-cert.pem -nodes -clcerts
Related articles
Andrew Fletcher
•
11 Oct 2023
Launching app code in a simulator like Xcode or Android Studio
Loading the code in a platform - in this article, I'll be focusing on Android and iOS. Ionic app shell prompts for iOS and Android devices. Here's a breakdown of the commands:npm run buildThis command is used to build your web app. It's typically associated with web development frameworks...
Andrew Fletcher
•
20 Jul 2022
cordova ios after upgrading to iOS 14 a black screen is shown and no splash screen appears
It appears that the plugin or file path is not working how it used to be on previous iOS versions. Previous version had the splash screen showing. After upgrading to plugins, a black screen is shown.
The easiest way to simulate the problem is using iOS simulator. A black screen will...
Andrew Fletcher
•
08 Dec 2020
How to programmatically change the app language without restarting the app
iOS localization on the fly
If you have added languages to your app... shortly afterwards you'll be getting yourself knee deep in changing the language on the fly. Followed by the question – how do you change the language of the app without having to restart the app? To change...