You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Curl Command Returns Error "SSL Certificate Problem: Unable To Get Local Issuer Certificate"

edited Jun 20, 2022 6:28AM in Linux

SSL Certificates are checked when using applications, such as curl, to connect to web servers.

If this check fails, errors such as "unknown CA" and "SSL certificate problem: unable to get local issuer certificate' can occur. This can be caused by an openssl configuration being set in the user environment variable that is redirecting the CA Certification.

For example, running the curl command fails with the following error:

# curl -v <HOSTNAME>

* Trying x.x.x.x:443...

* Connected to <HOSTNAME> (x.x.x.x) port 443 (#0)

* ALPN, offering http/1.1

* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH

* TLSv1.2 (OUT), TLS header, Certificate Status (22):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!