CURL Error 35:ERROR:140770FC:SSL Routines:SSL_23_GET_SERVER_HELLO:unknown protocol

Source: Internet
Author: User
Tags curl file permissions

There was a problem in the SSL/TLS handshake process. You do need the error buffer and read the message there, because it points out the problem slightly. Can be a certificate (file format, path, permissions), password, and so on.


Error tip: CURL error 35:ERROR:140770FC:SSL Routines:SSL_23_GET_SERVER_HELLO:unknown protocol



Solution:

1. Modify the SSL version

curl_setopt ($ch, Curlopt_sslversion, 3); Set SSL version, 1-3 toggle curl_setopt ($ch, Curlopt_ssl_verifypeer, false); Do not check certificates
If the above is not possible, please see below

2. modify file permissions to 777

If the above is not possible, please see below

3. The requested https://removed

Example: Https://www.360kan.com changed to Www.360kan.com

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.