Show / Hide Table of Contents
Edit on GitHub

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

| Improve this Doc View Source

EncodedValue

The CSR in DER encoded format

Declaration
public byte[] EncodedValue { get; }
Property Value
Type Description
Byte[]
| Improve this Doc View Source

SignatureAlgorithm

CSR Signature algorithm used for the SignatureValue

Declaration
public SignatureAlgorithm SignatureAlgorithm { get; }
Property Value
Type Description
SignatureAlgorithm
| Improve this Doc View Source

SignatureValue

CSR signature value

Declaration
public byte[] SignatureValue { get; }
Property Value
Type Description
Byte[]
| Improve this Doc View Source

Subject

CSR subject name

Declaration
public Name Subject { get; }
Property Value
Type Description
Name
| Improve this Doc View Source

SubjectPublicKey

CSR public key

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

Methods

| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

GetPemEncoded()

Returns the CSR in PEM encoded format

Declaration
public string GetPemEncoded()
Returns
Type Description
String
| Improve this Doc View Source

Verify()

Verifies if the CSR is valid

Declaration
public bool Verify()
Returns
Type Description
Boolean
| Improve this Doc View Source

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