Click or drag to resize

CertificateGenerator Class

The CertificateGenerator searches certificate stores for existing certificates and creates self-signed certificates if no matching certificate exists in any accessible store. It then generates a certificate file at the specified certificate path.
Inheritance Hierarchy
SystemObject
  GSF.Net.SecurityCertificateGenerator

Namespace: GSF.Net.Security
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax
public class CertificateGenerator
View Source

The CertificateGenerator type exposes the following members.

Constructors
 NameDescription
Public methodCertificateGenerator Creates a new instance of the CertificateGenerator class.
Top
Properties
 NameDescription
Public propertyCertificatePath Gets or sets the path to the certificate file that is generated by this certificate generator.
Public propertyDebugLog Gets a list of detailed log messages
Public propertyIssuer Gets or sets the name of the entity issuing the certificate.
Public propertySubjectNames Gets or sets the subject names (common names) of the entity that this certificate identifies.
Public propertyValidYears Gets or sets the number of years self-signed generated certificates should be valid.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodExportCertificateWithPrivateKey Exports the private key of the certificate that is currently in use to the given path, encrypting the file with the given password.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGenerateCertificate Generates the certificate.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodImportCertificateWithPrivateKey Imports the given certificate into the current user store and then exports the public key.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also