无法在 Azure 通知中心上传“.p12”证书

Failed to upload '.p12' certificate in azure notification hub

我正在尝试将“.p12”证书上传到通知中心,但出现休闲错误。

我正在使用生产证书。昨晚我更新了开发证书,现在我正在创建新的生产证书并为该证书创建“.p12”。请提出导致此错误的任何想法。

证书似乎无效。请验证以下内容。

  1. 进入你的钥匙串
  2. 转到键
  3. 找到正确的证书,用左边的小箭头展开
  4. Select 仅证书,这很重要。所以应该只选择子节点。
  5. 右键单击它,导出,设置密码并上传到 Mobile Center(或任何地方)

根据您的描述,该问题可能是您的证书验证导致的。我建议您创建一个新的 Apple 推送通知客户端 SSL 证书,有关更多详细信息,您可以参考 here. Then follow the Configure the notification hub for APNS section under Configure and run the iOS project 为 APNS 配置通知中心以缩小此问题。