require certificates for TLS connections

This was being forced for the new Python 3.4-style TLS context wrapping,
but not the old code. This change should make the behavior consistent
regardless of Python version.