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 '