Distribution Certificates and Private Keys

Ok, here is my situation: I have 2 Macbooks (let's call them No. 1 and No. 2), and I started developing at # 1 in 2010.

In June 2011, my distribution certificate expired and I had to renew it. On my # 1 Macbook, I was able to renew the certificate in the keychain, and everything was fine when updating my application.

Now, in August 2011, I wanted to renew the certificate on my # 2, and also thought that I could just download it from dev.apple and add it to the keychain. But when I did this, the private key under the certificate was missing! Why is this? The private key for the distribution profile for 2010 was still visible below the expired certificate.

It made me so crazy that I went back to Macbook # 1 and exported both keys to # 2 there. Of course, it worked, but it might not be the solution for the future! What if the Macbook crashes and I want to do everything with the new Macbook? Suppose I could not export from # 1, how would I get the freakin private key below the certificate in # 2?

Secondly, I'm a little confused: what keys do I need to back up? I thought it was only a private key, but I couldn’t get it “below” the distribution certificate on my new Macbook No. 2, which scares me a little.

By the way: the war with the certificate with Apple is a big joke, but this is another topic.

+4
source share
1 answer

After setting up the certificates, go to the Xcode Organizer tab, and on the "Devices" tab on the left you will see the "Developer Profile" section, in which you can export your developer profile. These are password-protected files in which all your development / distribution certificates and their corresponding secret keys will be stored, as well as all profile profiles that you have installed. When you have this file, all you need to switch to a new machine is simply double-click on it, and when Xcode opens it, enter the password.

And believe it or not, the “certificate war” is not a big joke with Apple, you should see WP7, but this is for another place to discuss.

+7
source

Source: https://habr.com/ru/post/1368876/


All Articles