CryptoSys PKI Toolkit Manual

Example: X509.VerifyCert 

[VB6 equivalent: X509_VerifyCert]

' Returns 0 if OK, -1 if fails to validate, or +ve other error
Dim nRet As Integer
nRet = X509.VerifyCert("myuser.cer", "myca.cer")
If nRet = 0 Then
    Console.WriteLine("Verification is OK")
ElseIf nRet > 0 Then
    Console.WriteLine("Error: " & nRet & General.LastError())
Else
    Console.WriteLine("Cert not issued by this Issuer")
End If

See Also:
X509.VerifyCert Method

[Contents] [Index]

[HOME]   [NEXT: Error Handling and Error Codes...]

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