Cater for hosts where CN is != hostname

A trusted hostname can be provided which will always be trusted
regardless of the CN on it's HTTPS certifiate.

Fix for issue #19