简体   繁体   English

无法在钥匙串中安装iPhone开发人员证书

[英]Can't install an iPhone developer certificate in keychain

So I looked everywhere and I have no idea how to solve this certificate problem. 所以我到处看,我不知道如何解决这个证书问题。 Basically, I am the team leader for the project. 基本上,我是该项目的团队负责人。 I have two computers - one one of them everything properly: I have the keys, certificates, etc. and I can install the app on any provisioned device. 我有两台计算机 - 其中一台是正确的:我有钥匙,证书等,我可以在任何配置的设备上安装应用程序。

Now, on my second computer I just can't get to install the dev certificate on keychain. 现在,在我的第二台计算机上,我无法在钥匙串上安装开发证书。 Basically here is what I did: 基本上这就是我所做的:

  1. Went to the provisioning portal and downloaded my certificate from Certificates --> Development (I am guessing that here I did not have to request a CSR again, since I have it already on the portal - right? Regardless, I can't see on the portal how I can request another one...) 去了配置门户并从证书 - >开发中下载了我的证书(我猜这里我没有再请求CSR了,因为我已经在门户上了 - 对吧?无论如何,我看不到门户网站我怎么可以请求另一个......)

  2. Downloaded the WWDR certificate from the same page: Certificates --> Development 从同一页面下载WWDR证书:证书 - >开发

Now, it's weird cause when I double click on the certificate nothing happens on my keychain besides adding two keys - a private and a public under 'keys' but NOTHING under "My Certificate" 现在,这是奇怪的原因,当我双击证书时我的钥匙串上没有任何事情发生,除了添加两个键 - 私钥和公钥在'钥匙'下但没有在“我的证书”下

Also - when double clicking on developer_identiy.cer, nothing happens. 此外 - 双击developer_identiy.cer时,没有任何反应。 Any ideas? 有任何想法吗? I have literally tried everything...thanks! 我真的尝试了一切......谢谢!

You can't install a certificate on a different machine that the CSR (cert request) was generated from just from the certificate. 您无法在仅从证书生成CSR(证书请求)的其他计算机上安装证书。 The reason is this stuff is based on asymmetric cryptography, also called Public-key crypto. 原因是这些东西基于非对称加密,也称为公钥加密。 The machine you generated the CSR on created a Private key, and stored that in it's keychain, but sent it's public key along with the CSR. 您生成CSR的计算机创建了一个私钥,并将其存储在其密钥链中,但是将其公钥与CSR一起发送。 When Apple generates the cert, they use your public key in the creation of the Cert. 当Apple生成证书时,他们会在创建证书时使用您的公钥。 In order for you to use that cert, the machine must have both your private and public keys in the keychain. 为了使用该证书,机器必须在钥匙串中同时具有私钥和公钥。 You can export your public/private keys from the original machine and import them on your second computer, and then you'll be able to use your cert on both machines. 您可以从原始计算机导出公钥/私钥并将其导入第二台计算机,然后您就可以在两台计算机上使用您的证书。 Note: it's very important you keep your private key private - don't share it with other users, don't put it on a public file share. 注意:将私钥保密为非常重要 - 不要与其他用户共享,不要将其放在公共文件共享上。 Loose that and you'll have trouble. 松了,你会遇到麻烦。 Look under "Managing your digital identities" for instructions on how to backup & restore your key pair. 有关如何备份和恢复密钥对的说明, 查看“管理您的数字身份”

I forgot to highlight both the certificate AND private key in Keychain before clicking export. 在单击导出之前,我忘了在Keychain中突出显示证书和私钥。 If I only highlighted one of them and exported, when the other developer double clicked the .p12 it wouldn't add to his Keychain. 如果我只突出其中一个并导出,当另一个开发人员双击.p12时,它不会添加到他的钥匙串中。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 iPhone配置:证书不在钥匙串中安装密钥 - iPhone provisioning: Certificate does not install key in keychain iPhone和Xcode钥匙串-无法删除钥匙串? - IPhone and Xcode keychain - Can't delete keychain? 代码签名错误:“ iPhone开发者”身份与默认钥匙串中的任何有效证书/私钥对都不匹配 - Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain 代码签名错误:身份'iPhone Developer'与默认钥匙串中的任何有效证书/私钥对都不匹配 - Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain 硬盘格式化:代码签名错误:标识“ iPhone Developer”与默认钥匙串中的任何有效证书/私钥对都不匹配 - Hard Drive Reformat: Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain 代码签名错误:证书身份'iPhone开发人员:我的名字(xxx)'在钥匙串中出现不止一次 - Code Sign error: Certificate identity 'iPhone Developer: My Name (xxx)' appears more than once in the keychain 证书身份“ iPhone Developer:”在钥匙串中出现多次。 代码签名工具只需要一个 - Certificate identity 'iPhone Developer: appears more than once in the keychain. The codesign tool requires there only be one Trigger.io无法指向证书。 / usr / bin / codesign:iPhone开发人员:找不到身份 - Trigger.io Can't point to certificate. /usr/bin/codesign: iPhone Developer: no identity found iPhone开发人员证书申请 - iPhone developer certificate request iPhone Developer Certificate该证书无效 - iPhone Developer Certificate This certificate is invalie
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM