Move the hostname verification to after the SSL handshake has completed.
Merge pull request #525 from wsargent/fix-197

Move the hostname verification to after the SSL handshake has completed.