我使用城市飞艇在我的申请推送通知。所以,我需要从苹果开发者门户下载推送SSL证书。下载后,我在钥匙链访问中添加了它。但是没有为证书创建私钥。当我试图右键单击并导出证书时,我无法将其导出为.p12文件,因为保存时禁用了.p12文件扩展名。由于名声不佳,我无法在这里附上截图。

谁能告诉我问题出在哪里。我该怎么做呢?


当前回答

为了导出为p12,您需要从您的机器上生成证书,或者在您的机器上拥有用于生成证书的密钥。

为了确保这将是有效的:

Log in to Apple's Dev Center Go to the Provisioning Portal or Certificates, Identifiers & Profiles Go to Certificates and create a Apple Push Notification service SSL From here on you will be guided through the certificate generation process. After you download the generated cert, install it in your keychain (double click the cert file or drag and drop into the keychain window. Then select "Certificates" from the left panel. Right click the cert you want to export and the p12 option will be there.

注意:它不会在那里,除非你从你的机器生成证书

其他回答

在我的例子中,我把.cer文件变成了“system”选项,而不是“login”选项。然后我把。cer文件从“系统”移到“登录”选项,然后按“我的证书”,然后导出它。p12就可以了。

事实证明,你所要做的就是选择左边面板上的“My Certificates”,它就会启用.p12选项。

对我来说,不是在Keychain Access中的主证书行上右键单击并选择Export,而是单击我试图导出的证书旁边的下拉箭头,然后右键单击下面的条目,然后选择Export。然后您实际上选择的是私钥部分,而不是公钥部分。

为了导出为p12,您需要从您的机器上生成证书,或者在您的机器上拥有用于生成证书的密钥。

为了确保这将是有效的:

Log in to Apple's Dev Center Go to the Provisioning Portal or Certificates, Identifiers & Profiles Go to Certificates and create a Apple Push Notification service SSL From here on you will be guided through the certificate generation process. After you download the generated cert, install it in your keychain (double click the cert file or drag and drop into the keychain window. Then select "Certificates" from the left panel. Right click the cert you want to export and the p12 option will be there.

注意:它不会在那里,除非你从你的机器生成证书

Apple不会存储用于创建证书的私钥。您需要在您的机器上已经有它的副本。

听起来好像是其他人请求了您试图下载的推送证书,或者您在另一台机器上请求了它。如果找不到私钥,则需要创建一个新的证书请求并通过开发人员门户上传它。