Class Csr
Represents a high level Certificate Signing Request (PKCS#10) object
Assembly: Lacuna.Pki.dll
Syntax
Properties
EncodedValue
The CSR in DER encoded format
Declaration
public byte[] EncodedValue { get; }
Property Value
SignatureAlgorithm
CSR Signature algorithm used for the SignatureValue
Declaration
public SignatureAlgorithm SignatureAlgorithm { get; }
Property Value
SignatureValue
Declaration
public byte[] SignatureValue { get; }
Property Value
Subject
Declaration
public Name Subject { get; }
Property Value
SubjectPublicKey
Declaration
public PublicKey SubjectPublicKey { get; }
Property Value
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
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
GetPemEncoded()
Returns the CSR in PEM encoded format
Declaration
public string GetPemEncoded()
Returns
Verify()
Verifies if the CSR is valid
Declaration
Returns
VerifyCertificate(PKCertificate)
Verifies if a certificate corresponds to this CSR
Declaration
public bool VerifyCertificate(PKCertificate certificate)
Parameters
Returns