ios 钥匙串警告“系统根”钥匙串无法修改

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5401088/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 19:19:34  来源:igfitidea点击:

key chain warning The “System Roots” keychain cannot be modified

iphoneioscertificatekeychainios-provisioning

提问by nik

Am landed with following error "“System Roots” keychain cannot be modified" when I double tap the certificate. After googling I come to know that drag and drop the certificate is the solution for this.

当我双击证书时,出现以下错误“无法修改“系统根目录”钥匙串。谷歌搜索后,我开始知道拖放证书是解决这个问题的方法。

But even after doing this also in code it says "profile doesnt match vaild certificate/private key chain pair in the default key chain"

但即使在代码中执行此操作后,它也会显示“配置文件与默认密钥链中的有效证书/私钥链对不匹配”

ANy Solution....

任何解决方案....

Thanks.

谢谢。

采纳答案by A for Alpha

Step 1- download your developer certificate and drop in into your DEFAULTkeychain

第 1 步- 下载您的开发者证书并放入您的DEFAULT钥匙串

step 2- download apple WWDRCA certificate and drop into the same keychain.

第 2 步- 下载苹果 WWDRCA 证书并放入同一个钥匙串中。

step 3- CHECKif there is a private key along with your certificate. (you should be able to see tiny triangle beside your certificate. Click on it to see if your private key is present or not)

第 3 步-检查您的证书是否有私钥。(您应该能够在证书旁边看到小三角形。单击它以查看您的私钥是否存在)

step 4- download the provisioning profile from the developer portal and drop into your xcode.

第 4 步- 从开发人员门户下载配置文件并放入您的 xcode。

Try to do these things first. If you still get a error, then delete the extraapple certificates in your keychain and try the process once again.. it will do the trick...

尝试先做这些事情。如果您仍然遇到错误,请删除钥匙串中多余的苹果证书并再次尝试该过程..它会解决问题...

回答by Sunil Targe

Just try below three steps

只需尝试以下三个步骤

Step 1:Open your Keychain Access app.
Step 2:You will see list in left side as 'Login' ,'System' and 'System Roots', just drag your certificate in 'Login' option.
Step 3:You will get certificate install successfully in Keychain Access.

第 1 步:打开您的 Keychain Access 应用程序。
第 2 步:您将在左侧看到“登录”、“系统”和“系统根目录”列表,只需将您的证书拖到“登录”选项中即可。
第 3 步:您将在 Keychain Access 中成功安装证书。

回答by Tony

I had the same issue when I tried to install an iOS push service certificate with the Keychain Access application opened, to solve this problem, I just closed the application, and double click the certificate, then the certificate was installed without any problem.

我在打开 Keychain Access 应用程序的情况下尝试安装 iOS 推送服务证书时遇到了同样的问题,为了解决这个问题,我只是关闭了应用程序,然后双击证书,然后证书安装没有任何问题。

回答by Anand Nimje

enter image description here

在此处输入图片说明



I also faced this problem with the APNScertificate by double click on it getting the error but manually import certificate works for me.

我也遇到了APNS证书的这个问题,双击它得到了错误,但手动导入证书对我有用。



enter image description here

在此处输入图片说明

回答by palaniraja

I've solved the issue by running following commands in terminal. (from googling)

我通过在终端中运行以下命令解决了这个问题。(来自谷歌搜索)

cd /System/Library
sudo chmod -R 777 Keychains

Add the certificate and you should not get the error.

添加证书,您应该不会收到错误消息。

sudo chmod 755 Keychains
sudo chmod 644 Keychains/*

回答by Caleb

The default keychain is the one that Keychain Access shows in boldfacein the list of keychains. Usually, it's the "login" keychain. Open up the default keychain and look for your certificate. If you find it, make sure there's a little disclosure triangle to its left. Clicking on that triangle should reveal the private key. If you don't have all that, you won't be able to sign binaries.

默认钥匙串是钥匙串访问在钥匙串列表中以粗体显示的钥匙串。通常,它是“登录”钥匙串。打开默认钥匙串并查找您的证书。如果找到它,请确保其左侧有一个小三角形。单击该三角形应显示私钥。如果您没有所有这些,您将无法对二进制文件进行签名。

回答by Napa

In my case, I had to create a new .certSigningRequestfile by following the steps here.

就我而言,我必须.certSigningRequest按照此处的步骤创建一个新文件。

And Then I've to create the certs again with this new file.

然后我必须用这个新文件再次创建证书。

回答by Neelesh Aggarwal

Just had the same error. Found that after quitting keychain access and double-clicking the AppleWWDRCA.cer and developer_identity.cer it worked fine. It added them to the login keychain instead of attempting an add to system roots keychain.

只是有同样的错误。发现在退出钥匙串访问并双击 AppleWWDRCA.cer 和 developer_identity.cer 后,它工作正常。它将它们添加到登录钥匙串,而不是尝试添加到系统根钥匙串。

回答by Yogendra Singh

Quit keychain access and double-clicking the AppleWWDRCA.cer and developer_identity.cer it worked fine. It added them to the login keychain instead of attempting an add to system roots keychain.

退出钥匙串访问并双击 AppleWWDRCA.cer 和 developer_identity.cer 它工作正常。它将它们添加到登录钥匙串,而不是尝试添加到系统根钥匙串。

Apple Discussion link: https://discussions.apple.com/thread/2343078

苹果讨论链接:https: //discussions.apple.com/thread/2343078

回答by Sandeepkumar Rachha

I have a similar issue, may be the certificate which you are trying is not valid.Create a new certificate from developer portal and try again.it should work.

我有一个类似的问题,可能是您尝试的证书无效。从开发人员门户创建一个新证书并重试。它应该可以工作。