SSL host validation.
Merge pull request #8 from jortel/host-validation-1.0

SSL host validation.