CryptoSys PKI Pro Manual

X509.ValidatePath Method (String, String, Boolean)

Validate a certificate path with option to ignore time check.

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
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.

Examples (VB.NET)

See Example1

See Also

VB6/C equivalent: X509_ValidatePath

[Contents] [Index]

[PREV: X509.ValidatePath Method (String)...]   [Contents]   [Index]   
   [NEXT: X509.VerifyCert Method...]

Copyright © 2004-21 D.I. Management Services Pty Ltd. All rights reserved. Generated 2021-12-27T10:58:57Z.