Wget Returns Certificate Error Message
Applies to:
Linux OS - Version Oracle Linux 7.0 and later
Linux x86-64
Symptoms
After importing a Certificate Authority ( CA ) certificate with "update-ca-trust", wget
still reports that the issuer is unknown but only for non-root users
ERROR: The certificate of ‘<server name>’ is not trusted.
ERROR: The certificate of ‘<server name>’ hasn't got a known issuer.
Cause
Permissions are missing:
-rw-r-----. 1 root root 1639 Dec 6 2017 ca-cert-custom.pem
should be
-rw-r-xr-x. 1 root root 1639 Dec 6 2017 ca-cert-custom.pem
Solution
In order to fix this, please run the following commands and try the wget command again:
# cd /etc/pki/ca-trust/source/anchors
# chmod a+rx ca-cert-custom.pem
Tagged:
0