CryptoSys PKI Pro Manual

X509.ValidatePath Method

Validate a certificate path.

Syntax

[C#]
public static int ValidatePath(
   string certListOrP7File,
   string trustedCert = "",
   bool noTimeCheck = false 
)
[VB]
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

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

VB6/C equivalent: X509_ValidatePath

[Contents] [Index]

[PREV: X509.TextDumpToString Method...]   [Contents]   [Index]   
   [NEXT: X509.VerifyCert Method...]

Copyright © 2004-26 D.I. Management Services Pty Ltd t/a CryptoSys. All rights reserved. Generated 2026-09-21T05:59:39Z.