钥匙串上的分发证书中缺少私钥 [英] missing private key in the distribution certificate on keychain

查看:53
本文介绍了钥匙串上的分发证书中缺少私钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了以下问题,我无法在任何地方找到解决方案.基本上,我们有一个公司开发者帐户(不是企业),因此为了提交我们的应用程序,我要求我们的团队负责人向我发送分发证书,并创建并向我发送分发配置文件.

I have the following problem which I could not find a solution for anywhere. Basically, we have a company developer account (not enterprise) and so in order to submit our app, I requested from our team lead to send me the distribution certificate and create and send me a distribution provisioning profile.

使用开发人员配置文件,一切正常,但是当我安装证书和配置文件时,我没有在 Xcode 上看到分发配置文件,并且钥匙串中的 dist 证书下也没有私钥.

With the developer profile, everything works good, but when I installed the cert and the provisioning profile, I did not see the distribution profile on Xcode, and nor do I have a private key under the dist cert in the keychain.

有大佬知道怎么解决吗?我在不同的地方读到我需要撤销证书并创建一个新证书,但我真的不能这样做,因为我们公司有一堆应用程序,我不能为每个人撤销它.

Does anyone know how to solve this? I read in diff places that I will need to revoke the certificate and create a new one, but I can't really do that since we have a bunch of apps in the company and I can't revoke it for everyone.

推荐答案

啊这是一个常见的问题,解决方法很简单:

Ahh this is a common issue, The solution is simple:

最初创建开发人员凭据的人需要转到他们计算机上的钥匙串,然后右键单击私有和公共密钥,然后将密钥导出到文件中.然后您只需将该文件下载到您的计算机上并打开它,它就会被添加到您的钥匙串中.

Who ever created the developer credentials originally needs to go to the keychain on their computer and right click on the key(s) for private and public and export the key to a file. Then you just download that file on your computer and open it, and it will be added to your keychain.

您需要同时拥有配置文件的私钥(.pem 文件)和证书.

You need to have both the private key (.pem file) and the certificate for your provisioning profiles.

这篇关于钥匙串上的分发证书中缺少私钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆