curl install Error: Unable to establish SSL connection
[root@rzk curl]# wget https://curl.haxx.se/download/curl-7.54.0.tar.gz
--2021-11-25 16:47:14-- https://curl.haxx.se/download/curl-7.54.0.tar.gz
Resolving curl.haxx.se (curl.haxx.se)... 151.101.230.49, 2a04:4e42:11::561
Connecting to curl.haxx.se (curl.haxx.se)|151.101.230.49|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://curl.se/download/curl-7.54.0.tar.gz [following]
--2021-11-25 16:47:15-- https://curl.se/download/curl-7.54.0.tar.gz
Resolving curl.se (curl.se)... 151.101.194.49, 151.101.2.49, 151.101.66.49, ...
Connecting to curl.se (curl.se)|151.101.194.49|:443... connected.
GnuTLS: The TLS connection was non-properly terminated.
Unable to establish SSL connection.
Solution:
VIM enters local DNS configuration VIM/etc/resolv.conf
Add DNS for Ali
nameserver 223.5.5.5
nameserver 223.6.6.6
and then reloaded
Installation curl
Downloaded curlpack, location https://curl.haxx.se/download/
wget https://curl.haxx.se/download/curl-7.59.0.tar.gz
2007
tar -xzvf curl-7.59.0.tar.gz
Progress installation catalog
cd curl-7.59.0
compile,
./configure
make && & amp; Replacement make install
Check the version.
[ root@rzk Curl-7.54.0]# curl –version
curl 7.54.0 (x86_64-pc-linux-gnu) libcurl/7.54.0 OpenSSL/1.1.1g zlib/1.2.11
Protocols: dict file ftp ftps gopher http://imap imaps pop3 pop3s rtsp smb smtp smtps counts tftp
Features: IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy
Similar Posts:
- curl: (7) couldn’t connect to host [How to Solve]
- OS X: equivalent to WGet of Linux
- Raspberry Pi3 Error: “Unable to determine hardware version. I see: Hardware : BCM2835”
- [Solved] Composer Install Error: PHP Warning: copy(): SSL operation failed with code 1. OpenSSL Error messages:
- [Solved] Homebrew curl: (60) SSL certificate problem: certificate has expired
- How to Solve Error: curl: (56) Recv failure: Connection reset by peer
- file_get_Contents and fopen return false when requesting HTTPS address: Error content: SSL routes: ssl3_get_server_certificate:certificate verify failed
- ConnectFailure: Unable to establish connection to http://127.0.0.1:9696/v2.0/ports/f7eaf0bb-fb46-4a18-ab13-5dca89e7ec51.json
- Loaded plugins: rhnplugin, security This system is not registered with RHN.
- PHP Curl: How to Sending Post JSON Formate Data