【问题标题】:Can I convert p8 APNs Auth Key to pem file?我可以将 p8 APNs Auth Key 转换为 pem 文件吗?
【发布时间】:2020-02-13 21:24:22
【问题描述】:

我使用*.p8 APNs Auth Keys 而不是*.p12 证书来推送我的应用程序的通知。

而且,推送通知运行良好。

但是,我需要并与推送通知相关的第三方 SDK 只需要我提供 *.pem 文件,而不需要 *.p8

如果我只想将*.p8 用于 APN,我现在无法使用此 SDK。对吗?

【问题讨论】:

  • 你知道这是否可能吗?

标签: ios push-notification certificate apple-push-notifications pem


【解决方案1】:

您可以使用openssl 来执行此操作。您可以使用以下命令将 .p8 转换为 .pem:

如果 .p8 私钥被加密:

openssl pkcs8 -in AuthKey.p8 -out AuthKey.pem

如果 .p8 私钥未加密:

openssl pkcs8 -nocrypt -in AuthKey.p8 -out AuthKey.pem

Apple 提供的 APNS 和 Sign in with Apple *.p8 密钥未加密。

【讨论】:

  • 我需要 -nocrypt 来使用 Apple Bridge 进行 Auth0 登录
  • 为我创建一个空文件。
猜你喜欢
  • 2013-01-07
  • 1970-01-01
  • 2013-11-27
  • 1970-01-01
  • 2015-06-20
  • 2020-05-08
  • 2010-12-18
  • 2013-08-30
  • 2016-01-30
相关资源
最近更新 更多