X509.ValidatePath Method
Validate a certificate path.
Syntax
[C#]
public static int ValidatePath(
string certListOrP7File,
string trustedCert,
bool noTimeCheck
)
[VB.NET]
Public Shared Function ValidatePath ( _
certListOrP7File As String, _
trustedCert As String, _
noTimeCheck As Boolean _
) As Integer
Parameters
- certListOrP7File
- 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
- (optional) name of the trusted certificate (or base64 representation)
- noTimeCheck
- Set True to avoid checking if the certificates are valid now [default = check validity dates against system clock].
Return Value
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
VB6/C equivalent: X509_ValidatePath
[Contents] [Index]