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

Solution to SSL certificate https problem in php

angryTom
Release: 2023-04-07 16:56:01
forward
2122 people have browsed it

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!

Related labels:
source:www.80shihua.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template