Pushwoosh supports two ways to authenticate with Apple Push Notification service (APNs):
- a .p8 authentication key (token-based) — recommended by both Apple and Pushwoosh: it does not expire, one key covers several apps and both Sandbox and Production, and it is required for iOS Live Activities;
- a .p12 certificate (certificate-based) — the legacy method, kept for existing setups. It expires roughly yearly and is bound to one Bundle ID and environment.
If you are setting iOS up for the first time, consider using a .p8 key instead and skip the export below. If you do need a .p12, it must contain both the certificate and its private key — which is why Keychain Access only offers .cer/.pem when you select the certificate alone.
Exporting a .p12 from Keychain Access
- Open Keychain Access on your Mac (find it via Spotlight).
- In the sidebar under Category, select My Certificates.
- Locate the Apple Push Services certificate you need (e.g. Apple Push Services: your.bundle.id).
- Click the disclosure triangle next to it — a private key is listed underneath.
- Select both the certificate and its private key (hold Command (⌘) while clicking).
- Right-click (or Control-click) the selection and choose Export 2 items…
- In the save dialog set File Format to Personal Information Exchange (.p12), pick a name and location, and click Save.
- Create a password for the
.p12file — you will need it when uploading to Pushwoosh. Enter your macOS login password if Keychain asks for permission.
Upload the resulting file, together with the password, in Settings > Configure platforms for your iOS platform. Make sure the certificate matches the app's Bundle ID and the intended environment (Sandbox or Production).
Comments
0 comments
Please sign in to leave a comment.