I have an apache web server, with mod_ssl & SSL certificates from letsencrypt. certbot reports they are fine and not expiring. A few different (of my many users) report that they get invalid/expired SSL certs from the server (and I have see output from wget from them to prove that).
To debug this, I want to log lots of details of each SSL connection. I would like to log, for each SSL connection the remote IP, and details about the SSL connection (e.g. protocol), the client provided SNI (server name identification) value, and then what SSL certificate/chain/key on the server was used. I want to
With ErrorLog ssl:traceN (for various N) I can get some of these details. But I cannot see what SSL certificate the server is using for each connection. How can I do this?
wgetis not the best way to check certificate. Learn how to useopenssl s_clienttool, which was designed just for SSL/TLS debugging purposes.wgetto check the SSL cert. I do useopenssl s_clientfor monitoring. However some of my users are usingwgetto download files, and they encounter this error, and have emailed me the terminal output.wgetuses oldca_certificatesdatabase which doesn't include the new Let's Encrypt root certificate or some others. That's why their wget complains. If that's the case, you can't do and shouldn't do anything, it is their side which must be fixed.