I am trying to test my app on my iOS device. To do so I ill need to create a Certificate Signing Request(CSR).
These are the steps I took:
- Open
Keychain Accessin the Utilities folder. - On the drop down menu clicked Keychain Access → Certificate assistant → Request a Certificate from a Certificate Authority
- Entered my apple id email address and my name
- ticked
Save to disk - Clicked continue
- Save the CSR on desktop
Then the error:
The specified keychain is not a valid keychain file
I have tried the search engine for answers and I had no luck! Any help would be very much appreciated! Thanks in advance!
I have solved this question! Here are the steps:
Go to your terminal and type in:
ls -l ~/Library/
This will make sure that the permissions on the keychain folder are correct.
privs on the Keychains folder should be
drwxr-xr-x
If it is not drwxr-xr-x then follow these steps:
- Go to the drop down menu in Keychain Access.
- Keychain Access > Keychain First Aid
- Enter your
UsernameandPassword - Tick on
Repair - Click Start
This solved my problem! :)
来源:https://stackoverflow.com/questions/14767934/cant-create-a-new-certificate-signing-requestcsr