The prompt "invalid certificate", iospem

Source: Internet
Author: User
Tags openssl version

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

Related Article

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.