The certificate requested on the Apple Developer Web site is a certificate that authorizes the development or release of a Mac device, which means that one device corresponds to a certificate, but a $99 account allows only 3 publishing certificates, two development certificates, which cannot meet the use of multiple Mac devices, and using P12 files can solve this problem.
Why do you want to export the. p12 file
When we use more than three Mac devices to develop the application, want to apply for a new certificate, if in our certificate, contains 3 release certificates, 2 development certificates, you can find no further application of the development certificate and publishing certificate (generally in our certificate interface should have only one development certificate, a publishing certificate, There is no need to generate so many certificates that the certificates will not be added again until they expire. )
This "revoke" method is possible, but will cause the corresponding provisioning profiles failure, this can be large and small. If you are the only person who is not a problem, if it is a team everyone is in use, you have deleted the certificate, it will lead to the failure of other people's description, which means that other people can not publish the application (but also to develop), this is a big problem, so do not advocate this practice.
the second Method-". P12" (recommended):
Each of our certificates can generate a. p12 file, which is an encrypted file that, as long as it knows its password, can be used by all MAC devices so that the device does not need to be re-applied to the Apple Developer website for development and release of the certificate.
Note: The general. p12 file is for use by someone else, the machine must already have a certificate with a secret key to generate the. p12 file,
Open the keychain, select the certificate we need, right click, select "Export" IPhone distribition: "" ":
Fill in a name for the. p12 file, fill in a "password", "verify" with the same password
To install successfully on someone else's computer, you must have two files:
If you need to use it for development, these two files are required:
The. p12 file itself is an encrypted certificate, so you can use these two files to make other Mac devices available:
After you get these two files, double-click the "Certificates", ". P12" file (you need to enter the password, the password is the password that was generated when the. P12,), the role is to join the keychain, so that our computer has the proof of development, "profile" (role is placed in Xcode, Let Xcode know the legality of our development), after the addition can be used.
Apple P12 file--How many times an Apple certificate is used (egg ache, these problems only with other enterprises will encounter, other people's account can not give you, egg pain ...)