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
2194 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:
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
Latest Issues
***Enable https service
From 1970-01-01 08:00:00
0
0
0
Nginx HTTP redirect to HTTPS
From 1970-01-01 08:00:00
0
0
0
phpstudy novice tutorial https configuration
From 1970-01-01 08:00:00
0
0
0
Problem with using https in phpstudy
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template