Certes
Show / Hide Table of Contents

Class CertificationRequestBuilder

Represents a CSR builder.

Inheritance
object
CertificationRequestBuilder
Implements
ICertificationRequestBuilder
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Certes.Pkcs
Assembly: Certes.dll
Syntax
public class CertificationRequestBuilder : ICertificationRequestBuilder

Constructors

| Edit this page View Source

CertificationRequestBuilder()

Initializes a new instance of the CertificationRequestBuilder class.

Declaration
public CertificationRequestBuilder()
| Edit this page View Source

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 Source

Key

Gets the key.

Declaration
public IKey Key { get; }
Property Value
Type Description
IKey

The key.

| Edit this page View Source

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 Source

AddName(string)

Adds the distinguished name as certificate subject.

Declaration
public void AddName(string distinguishedName)
Parameters
Type Name Description
string distinguishedName

The distinguished name.

| Edit this page View Source

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 keyOrCommonName is not a valid X509 name.

| Edit this page View Source

Generate()

Generates the CSR.

Declaration
public byte[] Generate()
Returns
Type Description
byte[]

The CSR data.

Implements

ICertificationRequestBuilder

See Also

ICertificationRequestBuilder
  • Edit this page
  • View Source
© 2018 Certes Project
Back to top