To send push notifications to iOS devices using Pushwoosh, you need to upload an Apple Push Notification service (APNs) certificate in the .p12
format. This file format includes both the public certificate and its associated private key.
If you are trying to export the certificate from Keychain Access on your Mac and don't see the .p12
option, it's likely because you are only selecting the certificate itself. You need to export both the certificate and its private key together.
Follow these steps:
- Open Keychain Access on your macOS computer (you can find it using Spotlight search).
- In the sidebar under "Category", select My Certificates.
- Locate the Apple Push Services certificate you need to export (e.g.,
Apple Push Services: your.bundle.id
). - Click the small triangle (▶) next to the certificate name to expand it. You should see a private key listed underneath it.
- Select both the certificate and the private key below it. (Hold down the
Command
key (⌘) while clicking to select both items). - Right-click (or
Control
-click) on the selected items. - Choose Export 2 items... from the context menu.
- In the save dialog box:
- Ensure the File Format is set to Personal Information Exchange (.p12).
- Choose a filename and a location to save the file.
- Click Save.
- You will be prompted to create a password for the
.p12
file. This password is required when you upload the file to Pushwoosh. Enter and verify a secure password. - You might be asked to enter your macOS login password to allow Keychain Access to export the items. Enter it if prompted.
You now have the .p12
file ready to be uploaded to your Pushwoosh application configuration along with the password you created.
Note: Consider using token-based authentication (.p8 key) for APNs, as it does not expire annually like .p12
certificates.
Comments
0 comments
Please sign in to leave a comment.