preface

In fact, before doing push, we didn’t have a good understanding of what certificates are for, developing certificates, producing certificates, and various forms of certificates. So take some time today to make a record of how various certificates are applied and used before recording and pushing them.

1. Obtain your own.csr file

2. Configure the certificate to push

1) Open your developer account and find the APP you need to configure for push

3) Upload the. CSR file you just prepared and the configuration is complete. Download the two certificates locally.

3. Convert the certificate to the format you need

Cer files downloaded from the Apple developer account need to be converted to. P12 or. Pem format.

1). Cer to. P12

Use keychain to open the downloaded. Cer file and right-click to export it. If there is no left triangle, please check: 1. Is it the push certificate applied by the machine? 2. Is it in the list under the right-most login option

2). Cer to. Pem

Open terminal direct conversion

Openssl x509 -in aps_developer_identity.cer -inform DER -out aps_developer_identity.pem -outform PEMCopy the code

Certificate part of the first here, where did not write clear or did not understand or in the process of solving the problem are welcome to leave a message wow, willing to make a contribution. First record for the Nuggets. (*≧∪≦)