key chain warning The “System Roots” keychain cannot be modified [closed]
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
The community reviewed whether to reopen this question 1 year ago and left it closed:
Improve this questionOriginal close reason(s) were not resolved
Am landed with following error "“System Roots” keychain cannot be开发者_StackOverflow社区 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 doesn't match valid certificate/private key chain pair in the default key chain"
Any solution?
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.
Step 1 - download your developer certificate and drop in into your DEFAULT keychain
step 2 - download apple WWDRCA certificate and drop into the same keychain.
step 3 - CHECK if 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)
step 4 - download the provisioning profile from the developer portal and drop into your xcode.
Try to do these things first. If you still get a error, then delete the extra apple certificates in your keychain and try the process once again.. it will do the trick...
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.
I also faced this problem with the APNS certificate by double click on it getting the error but manually import certificate works for me.
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/*
NOTE: This was me eons ago, trying to get through problem at that time. I would not recommend doing this.
The default keychain is the one that Keychain Access shows in boldface in 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.
In my case, I had to create a new .certSigningRequest
file by following the steps here.
And Then I've to create the certs again with this new file.
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.
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.
Apple Discussion link: https://discussions.apple.com/thread/2343078
This work for me:
_Log to root with your terminal:
> chmod 755 your-certificate (You can use 777 if 755 not work actually 755 = read & execute)
> Drag the certificate file into Certificates Category in Keychains
I hope this helps you like it to help me too, cheer.
I know there could be many unknown reasons for this to happen.
For me it was the following:
As many of you did/do, I too had the Keychain Access app and Xcode opened behind while I double tapped on the downloaded certificate (.cer) file(s).
Soon after I closed the Keychain Access app and tried it out again, the following things happened accordingly:
- OS prompted me the OS Login prompt asking to allow access to modify the Keychain just to install the Certificate
- Soon after I entered the Password and allowed it, the certificate got installed, automatically opened the Keychain app, and displayed that the Certificate related log was enlisted.
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.
精彩评论