Class CertificationRequestBuilder
Represents a CSR builder.
Inheritance
CertificationRequestBuilder
Namespace: Certes.Pkcs
Assembly: Certes.dll
Syntax
public class CertificationRequestBuilder : ICertificationRequestBuilder
Constructors
| Edit this page View SourceCertificationRequestBuilder()
Initializes a new instance of the CertificationRequestBuilder class.
Declaration
public CertificationRequestBuilder()
CertificationRequestBuilder(IKey)
Initializes a new instance of the CertificationRequestBuilder class.
Declaration
public CertificationRequestBuilder(IKey key)
Parameters
| Type | Name | Description |
|---|---|---|
| IKey | key | The key. |
Properties
| Edit this page View SourceKey
Gets the key.
Declaration
public IKey Key { get; }
Property Value
| Type | Description |
|---|---|
| IKey | The key. |
SubjectAlternativeNames
Gets the subject alternative names.
Declaration
public IList<string> SubjectAlternativeNames { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<string> | The subject alternative names. |
Methods
| Edit this page View SourceAddName(string)
Adds the distinguished name as certificate subject.
Declaration
public void AddName(string distinguishedName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | distinguishedName | The distinguished name. |
AddName(string, string)
Adds the name.
Declaration
public void AddName(string keyOrCommonName, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | keyOrCommonName | Name of the key or common. |
| string | value | The value. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | If |
Generate()
Generates the CSR.
Declaration
public byte[] Generate()
Returns
| Type | Description |
|---|---|
| byte[] | The CSR data. |