Click or drag to resize

X509ValidatePath Method

Validate a certificate path.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static int ValidatePath(
	string certListOrP7File,
	string trustedCert = "",
	bool noTimeCheck = false
)

Parameters

certListOrP7File  String
either a list of certificate names separated by a semicolon or the name of a PKCS-7 "certs-only" file containing the certificates to be validated
trustedCert  String  (Optional)
(optional) name of the trusted certificate (or base64 representation)
noTimeCheck  Boolean  (Optional)
Set True to avoid checking if the certificates are valid now [default = check validity dates against system clock].

Return Value

Int32
Zero if the certification path is valid; X509.Invalid (CERT_PATH_ERROR +43) if the path is invalid; otherwise a negative error code.
See Also