Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-17-2009, 10:01 AM   #1 (permalink)
iPhone Developer
 
Join Date: Feb 2009
Location: Sofia, Bulgaria
Age: 34
Posts: 2
designedright is on a distinguished road
Send a message via Skype™ to designedright
Default Problems exporting-importing p12 private key for developing on another Mac

Hello everyone,
This is my first post on this great forum and it is a post in distress. I have registered as an iPhone Developer and have went all the way through registering, paying, created all needed certificates and imported them on my machine, with compile errors being for application provision now - so it is ready to create provision and compile for distribution. But when I try to send the certificates to a team-mate coder so he can compile our application on his own Mac, he has problems importing the private key (in P12 file format). After entering the password for importing P12 Private Key, he gets the error:

"An error has occured. Unable to import an item" The contents of this item canot be retrieved

We have been trying for some time and nothing works out. Can anyone help me what can be done so the private key can be imported on another Mac? I am not ready to create a company account because I have to go through company registration which could slow me down, so if anything can be done for me and my team-mate to work together through one certificate, please let me know.

Thanks in advance.
designedright is offline   Reply With Quote
Old 02-17-2009, 10:17 AM   #2 (permalink)
Registered Member
 
Join Date: Dec 2008
Posts: 495
exorcyze is on a distinguished road
Default

I had to switch Macs after I had already been developing and was able to just use the Keychain to Export and then re-import with no problems. If I recall correctly, the Dev Center has a walkthrough on it - did you follow that out of curiosity?
__________________
My Apps on AppStore : gScale (guitar scales reference), eMaze, eMaze Lite, eTimesheet
exorcyze is offline   Reply With Quote
Old 02-17-2009, 11:45 AM   #3 (permalink)
iPhone Developer
 
Join Date: Feb 2009
Location: Sofia, Bulgaria
Age: 34
Posts: 2
designedright is on a distinguished road
Send a message via Skype™ to designedright
Default

Quote:
Originally Posted by exorcyze View Post
I had to switch Macs after I had already been developing and was able to just use the Keychain to Export and then re-import with no problems. If I recall correctly, the Dev Center has a walkthrough on it - did you follow that out of curiosity?
I admit I do not understand certification properly. So I'll ask couple questions:
1. Can two Macs have the the public / private keys of a single iPhone Certificate at once? Can I have it and my team-mate have it and can we both build using that certificate? Or just one of us needs the certificate while the other must remove it from his keychain?
2. What is the order of importing public private keys? Do I have to import the public key first (Pem file) and then the private key (P12)?
designedright is offline   Reply With Quote
Old 08-21-2009, 01:57 PM   #4 (permalink)
Registered Member
 
Join Date: Mar 2009
Posts: 26
okkercat is on a distinguished road
Default

I'm gonna go ahead and bump this, because Im having major trouble with this too. I've followed all the instructions on the Dev Center, got my client to export his keys properly, but when I try to import it I get the error above. Also, interestingly enough, the private key (but only the private key) appears in my keychain, and is associated with the proper distribution certificate. I will pay anyone who helps us out 100 bucks. Not really, but cmon guys, this is really frustrating stuff, eh?
okkercat is offline   Reply With Quote
Old 10-18-2009, 03:10 AM   #5 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 2
silverlight is on a distinguished road
Default

till now, I also have similar questions.
It's kind of interesting, most developers don't need to trasfer private/public keys to their clients.

Quote:
Originally Posted by designedright View Post
Hello everyone,
This is my first post on this great forum and it is a post in distress. I have registered as an iPhone Developer and have went all the way through registering, paying, created all needed certificates and imported them on my machine, with compile errors being for application provision now - so it is ready to create provision and compile for distribution. But when I try to send the certificates to a team-mate coder so he can compile our application on his own Mac, he has problems importing the private key (in P12 file format). After entering the password for importing P12 Private Key, he gets the error:

"An error has occured. Unable to import an item" The contents of this item canot be retrieved

We have been trying for some time and nothing works out. Can anyone help me what can be done so the private key can be imported on another Mac? I am not ready to create a company account because I have to go through company registration which could slow me down, so if anything can be done for me and my team-mate to work together through one certificate, please let me know.

Thanks in advance.
silverlight is offline   Reply With Quote
Old 07-21-2010, 11:44 PM   #6 (permalink)
Registered Member
 
Join Date: Mar 2010
Location: Macau
Posts: 2
snakewa is on a distinguished road
Default

Quote:
Originally Posted by designedright View Post
Hello everyone,
This is my first post on this great forum and it is a post in distress. I have registered as an iPhone Developer and have went all the way through registering, paying, created all needed certificates and imported them on my machine, with compile errors being for application provision now - so it is ready to create provision and compile for distribution. But when I try to send the certificates to a team-mate coder so he can compile our application on his own Mac, he has problems importing the private key (in P12 file format). After entering the password for importing P12 Private Key, he gets the error:

"An error has occured. Unable to import an item" The contents of this item canot be retrieved

We have been trying for some time and nothing works out. Can anyone help me what can be done so the private key can be imported on another Mac? I am not ready to create a company account because I have to go through company registration which could slow me down, so if anything can be done for me and my team-mate to work together through one certificate, please let me know.

Thanks in advance.
Hope this still helps.

I got the same problem and finally I solve this by:

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.
snakewa is offline   Reply With Quote
Old 05-06-2011, 07:34 PM   #7 (permalink)
Registered Member
 
Join Date: May 2011
Posts: 1
maat is on a distinguished road
Wink Solved!

Folks,
you should first import your certificate and them export both - you even set a password to the exported key.

Regards,

Quote:
Originally Posted by snakewa View Post
Hope this still helps.

I got the same problem and finally I solve this by:

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.
maat is offline   Reply With Quote
Reply

Bookmarks

Tags
certificate, import, keychain, private key

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 329
4 members and 325 guests
guusleijsten, HowEver, LEARN2MAKE, mottdog
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,113
Posts: 402,880
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:42 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0