fixed logic problem in compare certs that was passing the wrong hostname