Home  >  Article  >  Backend Development  >  Solution to SSL certificate https problem in php

Solution to SSL certificate https problem in php

angryTom
angryTomforward
2019-10-15 17:51:132018browse

Solution to SSL certificate https problem in php

1. Download CA bundle (cacert.pem) from http://curl.haxx.se/docs/caextract.html

2. Find a location on the server to store cacert.pem, similar to /opt/local/cacert.pem

3. Open the php configuration file php.ini

4. Add the configuration curl.ca_info = / opt/local/cacert.pem

5. Restart the server apache or nginx

For more PHP related knowledge, please visit PHP Chinese website!

The above is the detailed content of Solution to SSL certificate https problem in php. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:www.80shihua.com. If there is any infringement, please contact admin@php.cn delete