Show / Hide Table of Contents

Class Csr

Represents a high level Certificate Signing Request (PKCS#10) object

Inheritance
Object
Csr
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 Csr

Properties

EncodedValue

The CSR in DER encoded format

Declaration
public byte[] EncodedValue { get; }
Property Value
Type Description
Byte[]

SignatureAlgorithm

CSR Signature algorithm used for the SignatureValue

Declaration
public SignatureAlgorithm SignatureAlgorithm { get; }
Property Value
Type Description
SignatureAlgorithm

SignatureValue

CSR signature value

Declaration
public byte[] SignatureValue { get; }
Property Value
Type Description
Byte[]

Subject

CSR subject name

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

SubjectPublicKey

CSR public key

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

Methods

Decode(Byte[])

Decodes a CSR from a DER, PEM or DER Base64 encoded bytes

Declaration
public static Csr Decode(byte[] content)
Parameters
Type Name Description
Byte[] content
Returns
Type Description
Csr

Decode(String)

Decodes a CSR from a PEM or DER Base64 encoded string

Declaration
public static Csr Decode(string content)
Parameters
Type Name Description
String content

PEM or DER Base64 encoded string

Returns
Type Description
Csr

GetPemEncoded()

Returns the CSR in PEM encoded format

Declaration
public string GetPemEncoded()
Returns
Type Description
String

Verify()

Verifies if the CSR is valid

Declaration
public bool Verify()
Returns
Type Description
Boolean

VerifyCertificate(PKCertificate)

Verifies if a certificate corresponds to this CSR

Declaration
public bool VerifyCertificate(PKCertificate certificate)
Parameters
Type Name Description
PKCertificate certificate
Returns
Type Description
Boolean
Back to top Copyright © 2015-2020 Lacuna Software