Add trace messages to HTTPS certificate rejections

When connecting to an HTTPS proxy, if we encounter problems verifying
the server's certificate, or determine that its name doesn't match the
name of the proxy server we're trying to reach, log a trace message so
that our decision to not use the server isn't a complete mystery.