Curl Command Returns Error "SSL Certificate Problem: Unable To Get Local Issuer Certificate"
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):
Tagged:
1