Fix bug verifying certs on dual-tls.