Implement basic SSL host name verification. See #469.