CryptoSys PKI Pro 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]

[PREV: Example: X509.ValidatePath ...]   [Contents]   [Index]   
   [NEXT: Error Handling and Error Codes...]

Copyright © 2004-23 D.I. Management Services Pty Ltd. All rights reserved. Generated 2023-09-18T10:02:53Z.