curl fails with - "NSS error -12173" on attempting to connect to a https URL

Solution Verified - Updated -

Issue

  • Curl fails with the below output
$  curl -k -v https://example.url.com:22233
* About to connect() to example.url.com port 22233 (#0)
*   Trying 10.0.0.5... connected
* Connected to example.url.com (10.0.0.5) port 22233 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* warning: ignoring value of ssl.verifyhost
* skipping SSL peer certificate verification
* NSS error -12173
* Closing connection #0
* SSL connect error
curl: (35) SSL connect error

Environment

  • Red Hat Enterprise Linux 6.9
  • Red Hat Enterprise Linux 7.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content