续订 Apple 开发者证书

Renew Apple developer certificate

距离 Apple 开发者证书到期还有一周左右的时间。我不小心丢失了创建当前正在使用的最后一个证书时使用的 CSR 文件。

如果我要与另一个 CSR 一起获得新证书,您能否告诉我可能会遇到的所有问题?

注:

  1. 没有 CSR,您将能够使用现有证书,但一旦它过期,您必须创建一个新的,如果之前的证书丢失,您可以 use/create 新的 CSR。

  2. 更新您的证书不会影响您在 public 环境 (Apple App Store) 上的分布式构建。但是当然,它不允许您使用 invalid/expired 证书分发新版本。

这是 Apple Developer Documentation 中针对 Code Signing Identity 的说明,上面写着,

If you lose control of your Apple-issued signing identity, such as your Developer ID or Mac App Distribution identity, report this to Apple immediately. Apple will invalidate the old identity and help you to replace it. While this seems like a bit of work, it is critical, because anyone possessing your identity can distribute potentially malicious or destructive code that looks like it came from you.


这也可能对您有所帮助。

No Code Signing Identities Found

Xcode 检测您何时缺少签名身份。通常,当您从一个 Mac 移动到另一个时会发生这种情况。按照创建团队配置文件中的步骤创建您的签名身份并将其添加到团队配置文件中。您可以选择从另一个 Mac 导入您的签名身份或重置它。如果您使用自己管理的自定义开发配置文件,则在吊销开发证书后将失效。阅读在您的开发者帐户中编辑配置文件以重新生成它。

为避免此问题,请将您的证书导出为另一个 Mac 上的开发人员配置文件,然后将它们导入您的新 Mac,如导出和导入证书和配置文件中所述。

根据苹果文档,.CSR 与您的 App ID、配置文件和权利结合使用。所以,如果一个人同时拥有(应用程序 ID 和供应配置文件),那将对您有害。

.CSR explanation