X509.VerifyCert Method
Verify 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 (
SIGNATURE_ERROR +22) 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.
See Also
VB6/C equivalent: X509_VerifyCert
[Contents] [Index]