The prompt "invalid certificate", iospem
In the past, I also encountered this kind of reminder that I could solve the problem after some hard work according to the configuration process on the official website. However, this time I 've been tossing around for a long time... Make wool. This may happen. I finally found that the version of my Mac system (just upgraded from 10.12.6 to 10.13) is too high, because the openssl version of 10.12.6 is 0.9.8zh, And the openssl version of 10.13 is 2. x. x. I can't remember how much it is. The company's computer has been upgraded, and the family has not yet upgraded. Baidu push does not accept the pem generated by openssl higher than 0.9.8. Find the cause and the following points are the points:
1. Download openssl 0.9.8zh from https://www.openssl.org/source/old/0.9.x/
2. decompress the downloaded package
3. cd the compressed package directory after decompression
4. execute commands
./Configure darwin64-x86_64-cc --prefix=/usr/local/openssl --shared
If you do not have the permission to create an openssl folder in this step, you can manually create an openssl folder under/usr/local/and then execute the command
5. execute commands
make && make install
6. openssl will appear in this path:/usr/local/openssl/bin/openssl. view the following version on the command line:
/usr/local/openssl/bin/openssl version
0.9.8zh is displayed. Success !!!
7. Generate pem:
/Usr/local/openssl/bin/openssl pkcs12-in your p12 name. p12-out output pem name. pem-nodes
8. Send it to Baidu
Finally, for ease of use, I have uploaded the generated version 0.9.8zh openssl, which can be downloaded and used directly: openssl.zip
Reference: http://www.cnblogs.com/gauze/p/5483703.html