fix CERT_UNTRUSTED issue