Click or drag to resize

X509 Class

X.509 Certificate Functions
Inheritance Hierarchy
SystemObject
  CryptoSysPKIX509

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public class X509

The X509 type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCertExpiresOn Return date and time certificate expires.
Public methodStatic memberCertIssuedOn Return date and time certificate was issued.
Public methodStatic memberCertIssuerName Get the issuer name of an X.509 certificate.
Public methodStatic memberCertIsValidNow Verify that an X.509 certificate is currently valid as per system clock.
Public methodStatic memberCertRequest Create a PKCS #10 certificate signing request (CSR).
Public methodStatic memberCertSerialNumber Return serial number in hex format.
Public methodStatic memberCertSubjectName Get the subject name of an X.509 certificate.
Public methodStatic memberCertThumb Calculate the thumbprint (message digest hash) of an X.509 certificate.
Public methodStatic memberCheckCertInCRL Check whether an X.509 certificate has been revoked in a Certificate Revocation List (CRL).
Public methodStatic memberGetCertCountInP7Chain Return number of certificates in a PKCS-7 "certs-only" certificate chain file.
Public methodStatic memberGetCertFromP7Chain Extract an X.509 certificate from a PKCS-7 "certs-only" certificate chain file, saving the output directly as a new file.
Public methodStatic memberGetCertFromPFX Extract an X.509 certificate from a PKCS-12 PFX/.p12 file, saving the output directly as a new file.
Public methodStatic memberGetP7ChainFromPFX Extract all X.509 certificates from a PKCS-12 PFX/.p12 file, saving the output directly as a new PKCS-7 "certs-only" certificate chain file.
Public methodStatic memberHashIssuerAndSN Create a message digest of the Issuer's name and the cert serial number.
Public methodStatic memberKeyUsageFlags Returns a bitfield containing the keyUsage flags.
Public methodStatic memberMakeCert Create a new X.509 certificate using subject's public key and issuer's private key files with signature options.
Public methodStatic memberMakeCertSelf Create a self-signed X.509 certificate with signature options.
Public methodStatic memberMakeCRL Create an X.509 Certificate Revocation List (CRL).
Public methodStatic memberQueryCert Query an X.509 certificate file for selected information.
Public methodStatic memberReadCertStringFromP7Chain Read an X.509 certificate into a base64 string from PKCS-7 "certs-only" data.
Public methodStatic memberReadCertStringFromPFX Read an X.509 certificate into a base64 string from PKCS-12 PFX/.p12 data.
Public methodStatic memberReadStringFromFile Create a base64 string representation of a X.509 certificate file.
Public methodStatic memberSaveFileFromString Create a new X.509 certificate file from a base64 string representation.
Public methodStatic memberTextDump Dump details of an X.509 certificate or a X.509 certificate revocation list (CRL) or a PKCS-10 certificate signing request (CSR) to a text file.
Public methodStatic memberTextDumpToString Dump details of an X.509 certificate or a X.509 certificate revocation list (CRL) or a PKCS-10 certificate signing request (CSR) to a string.
Public methodStatic memberValidatePath Validate a certificate path.
Public methodStatic memberVerifyCert Verify that an X.509 certificate has been signed by its issuer.
Top
Fields
 NameDescription
Public fieldStatic memberExpired Return value from X509.CertIsValidNow indicating that the certificate has expired (EXPIRED_ERROR).
Public fieldStatic memberFailure Return value from X509.VerifyCert indicating failure (SIGNATURE_ERROR).
Public fieldStatic memberInvalid Return value from X509.ValidatePath indicating that the certificate path is invalid (CERT_PATH_ERROR).
Public fieldStatic memberRevoked Return value from X509.CheckCertInCRL indicating that the certificate is revoked (REVOCATION_ERROR).
Top
See Also