Validate a certificate path.
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static int ValidatePath(
string certListOrP7File,
string trustedCert = "",
bool noTimeCheck = false
)
Public Shared Function ValidatePath (
certListOrP7File As String,
Optional trustedCert As String = "",
Optional noTimeCheck As Boolean = false
) As Integer
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
Int32Zero if the certification path is valid;
X509.Invalid (
CERT_PATH_ERROR +43) if the path is invalid;
otherwise a negative
error code.
See Also