Add SSL debugging

Previously there was no good way to view the SSL configuration that
was eventually negotiated.  This change ensures that that information
is logged at DEBUG.
More defensive

Guess I should test before pushing.  This change makes the SSL debug
logging a lot more defensive.