Why does curl return error (35) security library: invalid arguments or bad dh value?
Issue
- Unable to access HTTPS sites over a TLS connection using
curl
. -
On Red Hat Enterprise Linux 7
curl
returns an error similar to the following:curl: (35) security library: invalid arguments.
-
On Red Hat Enterprise Linux 8 the error may look similar to the following:
curl: (35) error:141A3066:SSL routines:tls_process_ske_dhe:bad dh value
Environment
- Red Hat Enterprise Linux 7 and
nss-3.53.1-3.el7_9
or newer - Red Hat Enterprise Linux 8
FIPS
enabled
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.