Taken from https://github.com/hyperium/hyper-tls and modified for use with TrustDnsHttpConnector
