I recently bought an SSL certificate (positiveSSL).
I configured NGINX to work with it.
I can go to the https:// version of the site, and Chrome declares that the certificate is "valid and trusted".
However, command line programs say the opposite. These problems happen if I invoke the commands on the server or from a separate host. The commands are invoked from update versions of Ubuntu.
wget
# wget https://example.com
ERROR: The certificate of ‘example.com’ is not trusted.
ERROR: The certificate of ‘example.com’ doesn't have a known issuer.
When wget
is run on the server, the error message is:
ERROR: cannot verify example.com's certificate, issued by ‘CN=Sectigo RSA Domain Validation Secure Server CA,O=Sectigo Limited,L=Salford,ST=Greater Manchester,C=GB’:
Unable to locally verify the issuer's authority.
links
"The server example.com doesn't have a valid certificate. Do you want to connect to it anyway?"
lynx
"SSL error:The certificate is NOT trusted. The certificate issuer is unknown. -Continue? (n)"
curl
root@example:/etc/nginx# curl -I https://example.com
curl: (60) SSL certificate problem: unable to get local issuer certificate```
How can I get these command line programs to trust the certificate?