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.
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...
Please try following 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.
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'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/*
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
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.
来源:https://stackoverflow.com/questions/5401088/key-chain-warning-the-system-roots-keychain-cannot-be-modified