Modify verify code to handle self signed certificates.