<p dir="ltr">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). <br></p>
<p dir="ltr">[root@srwilson-centos7 anchors]# openssl s_client -showcerts -connect <a href="http://site.com:443">site.com:443</a> </dev/null 2>/dev/null|openssl x509 -outform PEM > site_git.pem<br>
[root@srwilson-centos7 anchors]# openssl verify site_git.pem<br>
site_git.pem: C = US, O = foo, OU = bar, OU = baz, OU = Devices, CN = <a href="http://site.com">site.com</a><br>
error 20 at 0 depth lookup:unable to get local issuer certificate<br>
[root@srwilson-centos7 anchors]# openssl s_client -CApath ./ -connect <a href="http://site.com:443">site.com:443</a> </dev/null 2>/dev/null | grep Verify<br>
    Verify return code: 21 (unable to verify the first certificate)<br>
[root@srwilson-centos7 anchors]# update-ca-trust enable; update-ca-trust extract<br>
[root@srwilson-centos7 anchors]# openssl s_client -CApath ./ -connect <a href="http://site.com:443">site.com:443</a> </dev/null 2>/dev/null | grep Verify<br>
    Verify return code: 21 (unable to verify the first certificate)</p>
<p dir="ltr">This is centos 7 and I'm in /etc/pki/ca-trust/source/anchors. Obviously I'm not looking at <a href="http://site.com">site.com</a> (that's probably a trusted cert anyway ;) ) </p>