Answer the question
In order to leave comments, you need to log in
Web socket fsockopen returns false over ssl with https working correctly, why?
I have a Bitrix website running on ubuntu in docker containers,
nginx stack + php-fpm + percona mysql + memcached + elastic search
, the network is also not simple.
The server is in the internal NAT space and all requests from the outside are proxied to the server
with
docker
containers new from lets encrypt
on two machines (#1 proxy, #2 machine with docker containers) also root certs updated too (bug since sep 29, 2021)
machines also new and freshly deployed ubuntu 20.x
But, the problem is when passing the check of the site, or more precisely, "Working with sockets"
and, more precisely, to be the code
fsockopen(' ssl://mydomain.com ', 443, $err, $text, 5)
location / {
proxy_ignore_client_abort on;
proxy_pass https://mydomain.ru:443;
proxy_redirect https://mydomain.ru:443 /;
proxy_read_timeout 300;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header HTTPS YES;
proxy_set_header Authorization "";
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
curl: (60) server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
More details here: http://curl.haxx.se/docs/sslcerts.html
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question