我已经创建了证书来启用我的应用程序中的推送服务,但每次我尝试在我的钥匙链中添加证书时,添加证书后它会显示以下错误:

此证书的颁发者无效


当前回答

请遵循以下步骤:

从这里下载和安装。双击并安装它。 在钥匙串应用程序中选择“查看”->“显示过期证书”。 删除Apple全球开发者关系证书授权 证书从“登录”标签和“系统”标签在钥匙串应用程序。

如果您在登录或系统选项卡中没有找到您的WWDR证书,则选择左侧的类别“所有项目”。您很可能会在这里看到一个过期的WWDR证书,您可以删除它。过期的证书总是用红色星号显示。

其他回答

下载https://developer.apple.com/certificationauthority/AppleWWDRCA.cer 双击安装到Keychain。 在钥匙串应用程序中选择“查看”->“显示过期证书”。 确认选择“证书”类别。 从“登录”标签和“系统”标签中删除过期的Apple全球开发者关系证书颁发机构证书。


以下是苹果的答案。

Thanks for bringing this to the attention of the community and apologies for the issues you’ve been having. This issue stems from having a copy of the expired WWDR Intermediate certificate in both your System and Login keychains. To resolve the issue, you should first download and install the new WWDR intermediate certificate (by double-clicking on the file). Next, in the Keychain Access application, select the System keychain. Make sure to select “Show Expired Certificates” in the View menu and then delete the expired version of the Apple Worldwide Developer Relations Certificate Authority Intermediate certificate (expired on February 14, 2016). Your certificates should now appear as valid in Keychain Access and be available to Xcode for submissions to the App Store.

https://forums.developer.apple.com/thread/37208

如果您的所有证书都出现“此证书的颁发者无效”错误,那么请执行以下步骤。

步骤:

Open Keychain and Click on Login -> All Items from the left panel. Now, Click on View -> Show Expired Certificates from the top navigation menu. Now search for "Apple Worldwide Developer Relations Certification Authority" and delete expired certificates. After deleting expired certificates, visit the following URL and download the new certificate, https://developer.apple.com/certificationauthority/AppleWWDRCA.cer. Double click on the newly downloaded certificate, and install it in your keychain. Double check: List expired certificates by following step number 3. Now you have a valid "Apple Worldwide Developer Relations Certification Authority" having expiry date 2023-02-07.

参考:

苹果全球开发者关系中级证书到期

在苹果的开发者门户网站中,添加一个新证书,当被问到“你需要哪种类型的证书?”时,选择“WorldWide Developer relations certificate”。生成新的证书,下载并安装。当您这样做时,您将不再看到您所描述的消息。

编辑: 证书下载路径如下: https://www.apple.com/certificateauthority/ 您可以选择以下两种证书之一: "WWDR证书(将于02/07/23到期)" 或 "WWDR证书(2016年2月14日到期)"

我所有的证书都安装好了,过期日期也没有问题。 我删除并重新安装了我所有的证书,仍然没有运气

最后,我右键点击证书,并选择“Get Info”。在“信任”部分,我选择了“始终信任”,这就解决了我的问题。

如果您是从Fastlane来到这里的,那么这个片段可能会修复您的CI部署。在签名之前执行它。

 apple_intermediate_certificate_path = "/tmp/AppleWWDRCAG3.cer"
`curl https://www.apple.com/certificateauthority/AppleWWDRCAG3.cer --output #{apple_intermediate_certificate_path}`

other_action.import_certificate(
  certificate_path: apple_intermediate_certificate_path,
  keychain_name: YOUR_KEYCHAIN_NAME,
  keychain_password: YOUR_KEYCHAIN_PASSWORD
)