Home >Backend Development >PHP Tutorial >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!