Set security error status on TLS cert mismatch