Hi,
I'm trying to get a script from githubusercontent using curl, but in SSL_connect fail with the following error.
root@OpenWrt:~# curl https://raw.githubusercontent.com/cokebar/gfwlist2dnsmasq/master/gfwlist2dnsmasq.sh -o /tmp/gfwlist2dnsmasq.sh && chmod u+x /tmp/gfwl
ist2dnsmasq.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (35) SSL_connect failed with error -308: error state on socket
Please help me to solve this issue
Thanks in advance
The error is coming from the wolfssl SSL library. But hard to figure out why there would be something strange with socket communications. I would assume that any generic error would materialize for others, too.
Are you using any special firewall, proxy, cache or similar, which might affect the https connections?
I just found that this issue was generated because the ip in /etc/hosts which I copied /etc/hosts from another site, to solve the previous issue, was wrong.
I revised the ip in /etc/hosts, then this issue doesn't appear anymore.