Help Center

How do I get .pem file for push notification on iOS?

The old Simi Push Notification feature was deprecated from 01 Jan 2020. We've switched to OneSignal for push notification now. Please see this updated guide from OneSignal: https://documentation.onesignal.com/docs/generate-an-ios-push-certificate

Step 1: Go to https://developer.apple.com and login to your Apple Developer Account.




Step 2: Select Certificates, Identifiers, Profiles




Step 3: Select tab Certificates, then Click (+) to add a new Certificate




Step 4: On Select Type page, select Apple Push Notification service SSL (Sanbox & Production). Then click Continue




Step 5: On this page, select the App ID you want to push notification to. Then click Continue




Step 6: Go to Create a New Certificate




Step 7: Prepare on your Mac (or a computer running MacOS)

  • Open Spotlight search and search “keychain”.
  • Follow Keychain Access/ Certificate Assistant/ Request a Certificate from a Certificate Authority



You are directed to “Certificate Information”. Please fill out all required information: 

  • Your Apple account email as “User Email Address”
  • app_pushnotification as “Common Name”

Tick on “Saved to disk”. Next, save this file as “app_pushnotification” and then you will get . certSigningRequest file on your Desktop






 

Step 9: Come back to your account on developer.apple.com. You need to click “Choose file” to upload the app_pushnotification.certSigningRequest file you have just created. Then, click “Continue”.



Then click "Download".




Step 10: After that, double click on the file you have just downloaded, change file’s name as app_pushnotification.cer, move this file to your Desktop and open “Keychain Access”. Now find “app_pushnotification” and “Apple Push Services:<your App ID>” and export these 2 items. Then, save this file as “app_pushnotification” and move to your Desktop. Please note that the file format is (.p12)












Step 11: Generate PEM file




 

Open Terminal and execute the following steps:
Go to the folder where you downloaded the files, in this case it's the Desktop:

  1. cd ~/Desktop/
  2. openssl pkcs12 -in app_pushnotification.p12 -out app_pushnotification.pem -nodes –clcerts     <Note: You need to enter the password you created at Step 10>
  3. openssl x509 -in app_pushnotification.cer -inform der -out app_pushnotificationpass.pem
  4. cat app_pushnotificationpass.pem app_pushnotification.pem > app_pushnotification_end.pem

The file app_pushnotification_end.pem is the one you need.


Step 12: Go to your backend, SimiCart > Notifications > Notification Settings
(Magento 1.x: Simiconnector > Connector Settings > General Settings > Notification Settings)



Click Choose File at Upload Apple PEM file to upload the .pem file you've just created. Finally, click Save Config.

    • Related Articles

    • Create and send push notifications

      In your OneSignal dashboard, go to Messages > New Push. Optional: Input a Message Name for internal recognition of the message. See Message Name for more details. Step 1. Audience The Segments of devices in which you wish to include and exclude from ...
    • Publish iOS app to Apple App Store

      After building your iOS app with SimiCart successfully, you need to submit the app to App Store so your customers can download it, use it and start purchasing. You can submit the app by yourself using this guide or ask our support team to submit the ...
    • How do I get App Key and Secret Key for push notifications on Android?

      The old Simi Push Notification feature was deprecated from 01 Jan 2020. We've switched to OneSignal for push notification now. Please see this updated guide from OneSignal: https://documentation.onesignal.com/docs/generate-a-google-server-api-key ...
    • Configure PWA (free version)

      1. Enable the PWA In your Magento backend, go to SimiCart PWA > Settings Push Notification and Offline Mode - Enable: Select Yes to enable both Push Notification and Offline Mode functions of PWA - Notification Icon URL (png) : image URL of the ...
    • How do I get Google API Key for location-based features on my app?

      1. Create a Google Cloud account Go to https://cloud.google.com/ and click Get started for free. Enter your information and click Start my free trial. 2. Google Cloud API Configuration Go to https://console.cloud.google.com/. On the left menu, go ...