Show / Hide Table of Contents

Class CsrGenerator

Inheritance
Object
CsrGenerator
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: Lacuna.Pki
Assembly: Lacuna.Pki.dll
Syntax
public class CsrGenerator

Constructors

CsrGenerator()

Declaration
public CsrGenerator()

Properties

DefaultSubject

Declaration
public static Name DefaultSubject { get; set; }
Property Value
Type Description
Name

PublicKey

Declaration
public PublicKey PublicKey { get; set; }
Property Value
Type Description
PublicKey

Subject

Declaration
public Name Subject { get; set; }
Property Value
Type Description
Name

Methods

AddExtensions(X509Extensions)

Declaration
public void AddExtensions(X509Extensions extensions)
Parameters
Type Name Description
X509Extensions extensions

Generate(Boolean)

Generates a PEM encoded CSR

Declaration
public string Generate(bool verifySignature = true)
Parameters
Type Name Description
Boolean verifySignature
Returns
Type Description
String

GenerateCsr(Boolean)

Generates a CSR decoded object

Declaration
public Csr GenerateCsr(bool verifySignature = true)
Parameters
Type Name Description
Boolean verifySignature
Returns
Type Description
Csr

GetToSignBytes()

Declaration
public byte[] GetToSignBytes()
Returns
Type Description
Byte[]

SetPrecomputedSignature(SignatureAlgorithm, Byte[], Byte[])

Declaration
public void SetPrecomputedSignature(SignatureAlgorithm signatureAlgorithm, byte[] signature, byte[] toSignBytes = null)
Parameters
Type Name Description
SignatureAlgorithm signatureAlgorithm
Byte[] signature
Byte[] toSignBytes

SetPublicKeyParameters(RSAParameters)

Declaration
public void SetPublicKeyParameters(RSAParameters publicKeyParameters)
Parameters
Type Name Description
RSAParameters publicKeyParameters
Back to top Copyright © 2015-2020 Lacuna Software