--Environment - Red Hat Enterprise Linux Server release 7.7 (Maipo) - curl 7.29.0 (x86_64-redhat-linux-gnu)
curl
https$ curl https://localhost
curl: (60) Issuer certificate is invalid.
More details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL).
(Translation)Certificate issues if this HTTPS server uses the certificate signed by the CA shown in the bundle(It may have expired or the name may not match the domain name in the URL)Certificate validation may have failed due to.
-k
or --insecure
optionIf you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option.
(Translation)If you want to turn off certificate validation with curl,-k (Or--insecure)Use the option.
I could see the URL properly
$ curl --insecure https://localhost
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
...abridgement...
</body></html>
-[curl] HTTPS communication not possible (unable to get local issuer certificate) --noknow -[When I access an SSL site with the openssl version of curl, I get a "SSL certificate problem: unable to get local issuer certificate" error](https://www.ipentec.com/document/software-curl-error-ssl -certificate-problem-unable-to-get-local-issuer-certificate)