I have a HTTPS-site that needs an intermediate-certificate to verify the servers SSL-certificate.
If I put the intermediate-cert into /etc/ssl/certs (and make the hash-link) then
openssl s_client -connect IP:PORT
will work. Otherwise I get a verification error.
Where does wget look for certificates? I only can make it work if I explicitly set --ca-directory in wget.
So it seems openssl looks into /etc/ssl/certs and wget does not.
Thanks!
EDIT
If I run wget with -d then I see without --ca-directory it loads about 150 certificates. With the option it is over 300. So it must be another path then openssl-default I think.
Wget 1.19.4 on linux-gnu on Debian 10
ldd $(which wget) | grep cryptoand rip it openstrings /your/path/libcrypto.so.1.1 | grep '/.*/' | grep -v '\.c'- papo