Let's log a bit more details when we need to deal with certificate exceptions to make it easier to debug things.