G
G
GilbertAmethyst2018-11-15 13:25:32
PHP
GilbertAmethyst, 2018-11-15 13:25:32

How to fix cUrl error when using https proxy?

Hello.
When trying to connect to a proxy from php using cUrl (latest version) I get the following error:

Network: CURL error 35: SSL received a record that exceeded the maximum permissible length. (see http://curl.haxx.se/libcurl/c/libcurl-errors.html).

nginx system, config:
server {
    listen       176.57.xxx.xxx:80 default;
    listen       176.57.220.xxx:443 ssl;
    listen 		 443 ssl http2;
    listen 		 [::]:443 ssl http2;
    server_name  _;
    #access_log  /var/log/nginx/176.57.xxx.xxx.log main;
    location / {
        proxy_pass  http://176.57.xxx.xxx:8080;
   }
}

server {
    listen       176.57.xxx.xxx:80;
  listen       176.57.xxx.xxx:443 ssl;
  listen       443 ssl;
    server_name  moviecamp.ru;

    location / {
        proxy_pass  http://176.57.xxx.xxx:3000;
   }
}

Proxy of the form:
https://login:[email protected]:65233
Moreover, if I use http, then everything is fine, but https is needed.
How to solve the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2018-11-15
@ky0

And where are the rest of the SSL parameters - certificate, key, etc.?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question