Question:
I cannot update the iOS push certificate using manual (.p12) configuration. I always get a “Cannot read p12 file” error.
Answer:
This error means Pushwoosh could not open the uploaded file as a .p12 with the password you entered. The usual causes are:
- the Private key password does not match the password you set when exporting the file;
- the file is not a .p12 (for example, a .cer or .pem certificate was uploaded instead);
- the file is damaged or was exported incorrectly.
If the file contains only the certificate without its private key, the export has to be redone. Export both items together:
- Open Keychain Access and select My Certificates in the sidebar.
- Expand your Apple Push Services certificate with the triangle so that the private key underneath it is visible.
- Select both the certificate and the private key (⌘-click), right-click and choose Export 2 items…
- Make sure the file format is Personal Information Exchange (.p12), save the file and set a password when prompted. Remember this password: you will need it in the Control Panel.
Then upload the file in the Control Panel:
- Go to Settings → Configure Platforms and click Connect (or Reconfigure) in the iOS row.
- Choose Certificate-based manual configuration and click Next.
- Upload the certificate file (.p12), enter the Private key password and choose the Gateway (Sandbox or Production).
- Click Configure to finish.
Full walkthrough: iOS certificate-based configuration.
Tip: token-based (.p8) configuration is required for Live Activities, so consider it instead of a .p12 certificate.
Comments
0 comments
Please sign in to leave a comment.