PHP Curl Request HTTPS returns no results |false|errno:35

Source: Internet
Author: User
Tags ssl certificate self signed certificate

1 ssl:certificate subject name ' Wmsvc-gwamserver02 ' does not match target host name

Put curl_setopt ($ch, Curlopt_ssl_verifyhost, false);

2 Curl ERROR:SSL Certificate problem:self signed certificate in Certificat

This is curlopt_ssl_verifyhost set to 1, different versions of Libcurl have an effect on curl Curlopt_ssl_verifyhost.

First, under Mac, and then Centos7 under Libcurl version 7.4, a similar problem occurs

Solution Solutions

1

curl_setopt ($ch, Curlopt_ssl_verifypeer, false);

curl_setopt ($ch, Curlopt_ssl_verifyhost, false);

2 reduced libcurl version to 7.4

wget http://curl.haxx.se/download/curl-7.38.0.tar.gz
Tar xzvf curl-7.38.0.tar.gz
CD curl-7.38.0/
./configure
486 Make && make install

PHP Curl Request HTTPS returns no results |false|errno:35

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.