Pular para o conteúdo principal

Csr

Namespace: Lacuna.Pki
Assembly: Lacuna.Pki
Class

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

public class Csr

Hierarquia: objectCsr

Propriedades

EncodedValue

The CSR in DER encoded format

public byte[] EncodedValue { get; }

Retorno

byte[]


SignatureAlgorithm

CSR Signature algorithm used for the SignatureValue

public SignatureAlgorithm SignatureAlgorithm { get; }

Retorno

SignatureAlgorithm


SignatureValue

CSR signature value

public byte[] SignatureValue { get; }

Retorno

byte[]


Subject

CSR subject name

public Name Subject { get; }

Retorno

Name


SubjectPublicKey

CSR public key

public PublicKey SubjectPublicKey { get; }

Retorno

PublicKey


Métodos

Decode(byte[])

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

public static Csr Decode(byte[] content)

Parâmetros

NomeTipoDescrição
contentbyte[]

Retorno

Csr


Decode(string)

Decodes a CSR from a PEM or DER Base64 encoded string

public static Csr Decode(string content)

Parâmetros

NomeTipoDescrição
contentstringPEM or DER Base64 encoded string

Retorno

Csr


GetPemEncoded()

Returns the CSR in PEM encoded format

public string GetPemEncoded()

Retorno

string


Verify()

Verifies if the CSR is valid

public bool Verify()

Retorno

bool


VerifyCertificate(PKCertificate)

Verifies if a certificate corresponds to this CSR

public bool VerifyCertificate(PKCertificate certificate)

Parâmetros

NomeTipoDescrição
certificatePKCertificate

Retorno

bool


Membros herdados

ToString(), Equals(object), Equals(object, object), ReferenceEquals(object, object), GetHashCode(), GetType(), MemberwiseClone()