Problems accessing websites using curl and wget between RHEL8 and RHEL7
Issue
- Unable to access secured websites using curl and wget between RHEL8 and RHEL7.
# curl -v https://secure.site.com
* Rebuilt URL to: https://secure.site.com/
* Trying 10.10.10.10..
* TCP_NODELAY set
* Connected to secure.site.com (10.10.10.10) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (OUT), TLS alert, protocol version (582):
* error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol
* Closing connection 0
curl: (35) error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol
# wget --verbose https://secure.site.com
--time-stamp-- https://secure.site.com
Resolving secure.site.com (secure.site.com)... 10.10.10.10)
Connecting to secure.site.com (secure.site.com)|10.10.10.10)|:443... connected.
GnuTLS: A packet with illegal or unsupported version was received.
Unable to establish SSL connection.
Environment
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.