CryptoSys PKI Toolkit Manual

X509.VerifyCert Method

Verifies that an X.509 certificate has been signed by its issuer

Syntax

[C#]
public static int VerifyCert(
	string certToVerify,
	string issuerCert
)
[VB.NET]
Public Shared Function VerifyCert ( _
	certToVerify As String, _
	issuerCert As String _
) As Integer

Parameters

certToVerify
Filename of certificate to verify
issuerCert
Filename of purported issuer's certificate

Return Value

Zero if the certificate's signature is valid; X509.Failure (-1) if the validation fails; otherwise a positive error code.

Remarks

This can also be used to verify that an X.509 Certificate Revocation List (CRL) or PKCS#10 Certification Signing Request (CSR) has been signed by the owner of the issuer's certificate. Just pass the name of the file (or its base64/PEM string form) as certToVerify.

Examples (VB.NET)

See Example1

See Also

VB6/C equivalent: X509_VerifyCert

[Contents] [Index]

[HOME]   [NEXT: Enumerations in .NET...]

Copyright © 2004-12 D.I. Management Services Pty Ltd. All rights reserved.