Curl gives “error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure”

When I run curl on https://www.ethics.state.tx.us/data/search/lobby/TEC_LA_CSV.zip I get a

error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure

I’ve tried adding -2 and -3 and other things I’ve seen online, but nothing seems to work. How can I resolve this issue and download this file with curl.

Here is the output from curl below,

$ curl -vvvk "https://www.ethics.state.tx.us/data/search/lobby/TEC_LA_CSV.zip"
*   Trying 204.65.203.80:443...
* TCP_NODELAY set
* Connected to www.ethics.state.tx.us (204.65.203.80) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS alert, handshake failure (552):
* error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure
* Closing connection 0
curl: (35) error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure

I’m also seeing this when I try to use -2,

curl: (4) OpenSSL was built without SSLv2 support

Go to Source
Author: Evan Carroll