iOS Baidu push upload PEM certificate prompt ' certificate invalid '

Source: Internet
Author: User
Tags openssl version

Previously uploaded the certificate has also encountered such a similar hint, according to the official website configuration process after a toss can always solve, but this toss a big half a day ... There must be something wrong with the knitting. The final discovery was my Mac system version (just from 10.12.6 to 10.13) too high, Because the 10.12.6 version of OpenSSL is 0.9.8zh, and 10.13 of the system OpenSSL version is 2.x.x, the specific number of memory, the company upgraded the computer, the home has not risen, Baidu push does not accept the above 0.9.8 OpenSSL generated PEM. Find out the reason is good to do, the following is the focus:

1, to https://www.openssl.org/source/old/0.9.x/download the OpenSSL 0.9.8zh version

2. Unzip the downloaded compressed package

3, CD after you unzip the archive package directory

4. Execution of Orders

. / Configure darwin64-x86_64-cc--prefix=/usr/local/OpenSSL--shared  

This step may encounter the problem of not having permission to create the OpenSSL folder, you can manually create a OpenSSL folder under/usr/local/, and then execute the command

5. Execution of Orders

Make && make install  

6. OpenSSL will appear under this path:/USR/LOCAL/OPENSSL/BIN/OPENSSL, command line view next version:

/usr/local/OpenSSL/bin/OpenSSL version  

Display 0.9.8zh, Success!!!

7. Generate PEM:

/usr/local/OpenSSL/bin/OpenSSL pkcs12-in your p12 name. p12-out The PEM name of the output. Pem-nodes  

8, throw it to Baidu to push it

Finally for the convenience of use, I have generated a good 0.9.8zh version of OpenSSL upload, can be directly downloaded using: Openssl.zip

Reference article: http://www.cnblogs.com/gauze/p/5483703.html

iOS Baidu push upload PEM certificate prompt ' certificate invalid '

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.