Show / Hide Table of Contents
Editar no GitHub

Class BasePKCertificateGenerator

Inheritance
Object
BasePKCertificateGenerator
PKCertificateGenerator
RemotePKCertificateGenerator
SelfSignedPKCertificateGenerator
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: Lacuna.Pki.Issuer
Assembly: Lacuna.Pki.dll
Syntax
public abstract class BasePKCertificateGenerator

Constructors

| Improve this Doc View Source

BasePKCertificateGenerator()

Declaration
public BasePKCertificateGenerator()

Properties

| Improve this Doc View Source

CertificateLevel

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

Csr

Certificate Signing Request with PEM or Base64 over DER encoding

Declaration
public string Csr { get; set; }
Property Value
Type Description
String
| Improve this Doc View Source

EndEntityBasicConstraintsCritical

Declaration
public bool EndEntityBasicConstraintsCritical { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

ExtendedKeyUsage

Declaration
public ExtendedKeyUsage? ExtendedKeyUsage { get; set; }
Property Value
Type Description
Nullable<ExtendedKeyUsage>
| Improve this Doc View Source

ExtendedKeyUsageCritical

Declaration
public bool ExtendedKeyUsageCritical { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

IncludeAuthorityKeyId

Declaration
public bool IncludeAuthorityKeyId { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

IncludeSubjectKeyId

Declaration
public bool IncludeSubjectKeyId { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

IsFinalCA

Declaration
public bool IsFinalCA { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

IsSelfSigned

Declaration
public bool IsSelfSigned { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

KeyUsage

Declaration
public KeyUsage? KeyUsage { get; set; }
Property Value
Type Description
Nullable<KeyUsage>
| Improve this Doc View Source

QualifiedCertificateStatementsCritical

Declaration
public bool QualifiedCertificateStatementsCritical { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

SanFields

Subject ALternative Names field encoding object

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

SerialNumber

The Certificate serial number. If null, uses a random serial number

Declaration
public BigInteger? SerialNumber { get; set; }
Property Value
Type Description
Nullable<BigInteger>
| Improve this Doc View Source

SignatureAlgorithm

Signature algorithm which will be used by the Issuer

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

SubjectName

The Certificate subject name. It is advised to use NameGenerator class for name object generation.

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

ValidityEnd

Declaration
public DateTimeOffset? ValidityEnd { get; set; }
Property Value
Type Description
Nullable<DateTimeOffset>
| Improve this Doc View Source

ValidityStart

Declaration
public DateTimeOffset? ValidityStart { get; set; }
Property Value
Type Description
Nullable<DateTimeOffset>

Methods

| Improve this Doc View Source

AddCertificatePolicy(String)

Adds a Certificate Policy field

Declaration
public void AddCertificatePolicy(string policyOid)
Parameters
Type Name Description
String policyOid

The policy OID

| Improve this Doc View Source

AddCertificatePolicy(String, Uri)

Adds a Certificate Policy field

Declaration
public void AddCertificatePolicy(string policyOid, Uri cpsUri)
Parameters
Type Name Description
String policyOid

The policy OID

Uri cpsUri

URI to reach the Certification Practice Statement document

| Improve this Doc View Source

AddCertificatePolicy(String, Uri, IEnumerable<String>)

Adds a Certificate Policy field

Declaration
public void AddCertificatePolicy(string policyOid, Uri cpsUri, IEnumerable<string> userNotices)
Parameters
Type Name Description
String policyOid

The policy OID

Uri cpsUri

URI to reach the Certification Practice Statement document

IEnumerable<String> userNotices

User Notices explicit text qualifier info

| Improve this Doc View Source

AddCrlDistributionPoint(Uri)

Adds an URI for the issuer CRL download

Declaration
public void AddCrlDistributionPoint(Uri uri)
Parameters
Type Name Description
Uri uri

The URI to reach the latest CRL

| Improve this Doc View Source

AddCustomExtension<T>(String, Boolean, T)

Adds a custom X509 Extension with a value to be encoded as DER and wrapped in the extension's OCTETSTRING

Declaration
public void AddCustomExtension<T>(string oid, bool isCritical, T value)
Parameters
Type Name Description
String oid
Boolean isCritical
T value

Value to be DER encoded and wrapped

Type Parameters
Name Description
T
| Improve this Doc View Source

AddIssuerCertificateUri(Uri)

Adds an Authority Information Access URI, where the issuer(s) certificates(s) can be downloaded

Declaration
public void AddIssuerCertificateUri(Uri issuersUri)
Parameters
Type Name Description
Uri issuersUri
| Improve this Doc View Source

AddIssuerOcspUri(Uri)

Adds an URI which the issuer responds OCSP requests from

Declaration
public void AddIssuerOcspUri(Uri ocspUri)
Parameters
Type Name Description
Uri ocspUri
| Improve this Doc View Source

AddQualifiedCertificateStatement(QualifiedCertificateStatement)

Declaration
public void AddQualifiedCertificateStatement(QualifiedCertificateStatement statement)
Parameters
Type Name Description
QualifiedCertificateStatement statement
| Improve this Doc View Source

AddRawCustomExtension(String, Boolean, Byte[])

Adds a custom X509 Extension with a DER encoded value to be wrapped in the extension's OCTETSTRING

Declaration
public void AddRawCustomExtension(string oid, bool isCritical, byte[] encodedValue)
Parameters
Type Name Description
String oid
Boolean isCritical
Byte[] encodedValue

DER encoded value to be wrapped

| Improve this Doc View Source

SetStartAndEndValidityFromNow(TimeSpan)

Sets the the certificate validity start and end by the span value from now

Declaration
public void SetStartAndEndValidityFromNow(TimeSpan span)
Parameters
Type Name Description
TimeSpan span

Validity time from now

Back to top Copyright © 2015-2020 Lacuna Software