Add ssl cert verification, including matching hostnames with certs containing wild cards