简体   繁体   English

iOS开发/发行证书-缺少私钥

[英]ios development/distribution certificate - missing private key

I accidentally deleted private keys and my iOS certificates from the keychain Access. 我不小心从钥匙串访问中删除了私钥和我的iOS证书。

So i revoked my certificates from the iOS member center and creates new ones (with new CSR) plus new provisioning profile for my app and downloaded them. 因此,我从iOS会员中心撤消了我的证书,并为我的应用程序创建了新证书(具有新的CSR)以及新的配置文件,并下载了它们。

in Xcode when i try to sign the app with the new provisioning profile its marked as ineligible and my new certificate is missing private key. 在Xcode中,当我尝试使用新的配置文件对其进行签名时,将其标记为不合格,并且我的新证书缺少私钥。 在此处输入图片说明

在此处输入图片说明

Any idea to fix this problem can i match a private key manually ? 任何解决此问题的想法都可以手动匹配私钥吗?

I probably screwed up the Keychain Access on my MacBook when I accidentally deleted some of the items from there. 当我不小心从其中删除了某些物品时,我可能将MacBook上的钥匙串访问搞砸了。 I was not able to create the archive (.ipa) for ad-hoc distribution purpose because the certificates were not error-free (were not trusted, in red text). 我不能为临时分发目的创建存档(.ipa),因为证书并非没有错误(红色文本不可信)。 I repeated the steps without success - such as clicking "Request a Certificate from Certificate Authority" and creating new development and distribution certificates/profiles, deleting files from /Library/MobileDevice/Provisioning Profiles folder, /Users/owner/Library/Developer/Xcode/DerivedData folder. 我重复了步骤,但没有成功-例如单击“从证书颁发机构请求证书”并创建新的开发和分发证书/配置文件,从/ Library / MobileDevice / Provisioning Profiles文件夹,/ Users / owner / Library / Developer / Xcode中删除文件/ DerivedData文件夹。

I then - 然后我-

(1) deleted all the keys and certificates that I had created before, (1)删除了我之前创建的所有密钥和证书,

(2) downloaded the "Intermediate Signing Certificate" by clicking the link (see below), and double clicked this certificate to install it on the login keychain, (2)通过单击链接(见下文)下载“中间签名证书”,然后双击该证书以将其安装在登录钥匙串上,

(3) I then followed the normal steps (ie clicking "Request a Certificate from Certificate Authority", then using this to create new development and distribution certificates, and then corresponding provisional profiles from my developer portal). (3)然后,我按照正常步骤操作(即,单击“从证书颁发机构请求证书”,然后使用它创建新的开发和发行证书,然后从我的开发人员门户创建相应的临时配置文件)。

Now the certificates are free from errors (now have green check marks on the Keychain). 现在,证书没有错误(钥匙串上现在带有绿色的复选标记)。 I can now successfully make the archive (.ipa file) for distribution. 现在,我可以成功地制作存档(.ipa文件)进行分发了。 Hope this helps. 希望这可以帮助。

PS My desktop Mac was fine all along, only my MacBook was screwed up. PS我的台式Mac一直很好,只有MacBook搞砸了。 PS Do not worry about the yellow warning signs on com.apple.kerberos.kdc and com.apple.systemdefault certificates found in the System keychain that said "This certificate has not been verified by a third party." PS不要担心在系统钥匙串中找到的com.apple.kerberos.kdc和com.apple.systemdefault证书上的黄色警告标志,上面写着“该证书尚未经过第三方验证”。

中级签字证书

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM