End goal - I don't want the machine (curl, wget, git, etc) to throw errors when accessing a site that I trust (ie, within the company).
[root@srwilson-centos7 anchors]# openssl s_client -showcerts -connect site.com:443 </dev/null 2>/dev/null|openssl x509 -outform PEM > site_git.pem [root@srwilson-centos7 anchors]# openssl verify site_git.pem site_git.pem: C = US, O = foo, OU = bar, OU = baz, OU = Devices, CN = site.com error 20 at 0 depth lookup:unable to get local issuer certificate [root@srwilson-centos7 anchors]# openssl s_client -CApath ./ -connect site.com:443 </dev/null 2>/dev/null | grep Verify Verify return code: 21 (unable to verify the first certificate) [root@srwilson-centos7 anchors]# update-ca-trust enable; update-ca-trust extract [root@srwilson-centos7 anchors]# openssl s_client -CApath ./ -connect site.com:443 </dev/null 2>/dev/null | grep Verify Verify return code: 21 (unable to verify the first certificate) This is centos 7 and I'm in /etc/pki/ca-trust/source/anchors. Obviously I'm not looking at site.com (that's probably a trusted cert anyway ;) )
-- openssl-users mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users