更新您的 APNS 证书时出错 IOS Notification Firebase

error occurred while updating your APNS Certificate IOS Notification Firebase

我在上传APNS证书开发时出错IOS

如何解决?

两种可能—— 1. keychain导出p12时,不要在私钥上导出,右击私钥的父节点,见截图

  1. 有两种 p12 认证,包括开发和生产认证,请确保您上传的是正确的。

在我的例子中,我必须删除密码(OpenSSL 读取正常但不是 Google),然后它就起作用了。

remove the passphrase

openssl pkcs12 -in apns-certificate.p12 -nodes -out temp.pem
openssl pkcs12 -export -in temp.pem  -out unprotected.p12
rm temp.pem