Click or drag to resize

X509CertificateBuilder Class

Represents a version 3 X.509 certificate generator class. This class is intended to generate in-memory certificates without having to install them in certificate store.
Inheritance Hierarchy
SystemObject
  SysadminsLV.PKI.Cryptography.X509CertificatesX509CertificateBuilder

Namespace:  SysadminsLV.PKI.Cryptography.X509Certificates
Assembly:  SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax
public class X509CertificateBuilder

The X509CertificateBuilder type exposes the following members.

Constructors
  NameDescription
Public methodX509CertificateBuilder
Initializes a new instance of the X509CertificateBuilder class
Top
Properties
  NameDescription
Public propertyAlternateSignatureFormat
Gets or sets a value that indicates whether PKCS#1 v2.1 is used.
Public propertyExtensions
Gets a collection of user-supplied extensions to include in certificate.
Public propertyFriendlyName
Gets or sets a friend name for certificate.
Public propertyHashingAlgorithm
Gets or sets hashing algorithm used to sign the certificate. Default value is SHA256.
Public propertyNotAfter
Gets or sets the date in local time after which a certificate is no longer valid. This value cannot be earlier than NotBefore value. If external signer is used, this value cannot exceed NotAfter value of the signer certificate.
Public propertyNotBefore
Gets or sets the date in local time on which a certificate becomes valid. Default value is current date and time. If external signer is used, this value cannot be less than NotBefore value of the signer certificate.
Public propertyPrivateKeyInfo
Gets an asymmetric key pair generator. Use this property to configure asymmetric key generation options.
Public propertySerialNumber
Gets or sets a serial number. Input string must consist of hex characters only.
Public propertySubjectName
Gets or sets subject of the certificate. If this is self-signed certificate, subject will be copied to issuer field.
Public propertyVersion
Gets the version of X.509 certificate. This class creates only version 3 certificates.
Top
Methods
  NameDescription
Public methodBuild
Creates, signs and encodes certificate object.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
Although, the certificate is created in-memory, private key material still persists in CSP/KSP. When the certificate is no longer necessary, call X509Certificate2.DeletePrivateKey extension method.
See Also