开发者

The issues of exporting/importing certificate , private key under keychain access for Iphone

I want to export the certi开发者_运维技巧ficate and private key from one machine to another so I can reuse the provisioning profile.

There's a private key under the certificate in keychain access.

1)I exported the the certificate as certifcate .cer file then I imported that from another machine. However , it's missiong the private key. and xcode on the new machine complaining no valid signing key available for the imported provisioning profile.

2) Next I try to export the certificate and the private key as personal information exhange .p12 format, this time it prompted me to input a password which I did.

3)I imported the .p12 file into the new machine, this time the new machine complaining error, cannot read the contents.

So, what should I do to properly export both the certificate and private key and import them into the new machine.


Hope it may help you In Keychain, select three items: Your private key, public key and the cert from Apple

CMD+Click to select "export 3 items"

and you will export one .cer file. Then double click to import the file without keying any password to protect so.

or you should import cert first and then import both public and private key. Make sure you also have the Apple Developer Relations Root CA certificate in your keychain. That is what is used to verify the certificate. See in your keychain access whether it has been paired correctly.


With Xcode 5.0+, this has become very simple.
1. On the computer with the developer credentials, Goto Xcode->Preferences->Accounts.
Click on the gears to export the profile. Choose a password as it includes all your credentials of apple-developer program.
2. Share the exported file with the new computer.
3. Import the profile in your Xcode->preferences->Accounts.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜