Show / Hide Table of Contents

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

BasePKCertificateGenerator()

Declaration
public BasePKCertificateGenerator()

Properties

CertificateLevel

Declaration
public CertificateChainLevels CertificateLevel { get; set; }
Property Value
Type Description
CertificateChainLevels

Csr

Certificate Signing Request with PEM or Base64 over DER encoding

Declaration
public string Csr { get; set; }
Property Value
Type Description
String

EndEntityBasicConstraintsCritical

Declaration
public bool EndEntityBasicConstraintsCritical { get; set; }
Property Value
Type Description
Boolean

ExtendedKeyUsage

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

ExtendedKeyUsageCritical

Declaration
public bool ExtendedKeyUsageCritical { get; set; }
Property Value
Type Description
Boolean

IncludeAuthorityKeyId

Declaration
public bool IncludeAuthorityKeyId { get; set; }
Property Value
Type Description
Boolean

IncludeSubjectKeyId

Declaration
public bool IncludeSubjectKeyId { get; set; }
Property Value
Type Description
Boolean

IsFinalCA

Declaration
public bool IsFinalCA { get; set; }
Property Value
Type Description
Boolean

IsSelfSigned

Declaration
public bool IsSelfSigned { get; set; }
Property Value
Type Description
Boolean

KeyUsage

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

QualifiedCertificateStatementsCritical

Declaration
public bool QualifiedCertificateStatementsCritical { get; set; }
Property Value
Type Description
Boolean

SanFields

Subject ALternative Names field encoding object

Declaration
public ISanEncoding SanFields { get; set; }
Property Value
Type Description
ISanEncoding

SerialNumber

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

Declaration
public BigInteger? SerialNumber { get; set; }
Property Value
Type Description
Nullable<BigInteger>

SignatureAlgorithm

Signature algorithm which will be used by the Issuer

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

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

ValidityEnd

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

ValidityStart

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

Methods

AddCertificatePolicy(String)

Adds a Certificate Policy field

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

The policy OID

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

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

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

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

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

AddIssuerOcspUri(Uri)

Adds an URI which the issuer responds OCSP requests from

Declaration
public void AddIssuerOcspUri(Uri ocspUri)
Parameters
Type Name Description
Uri ocspUri

AddQualifiedCertificateStatement(QualifiedCertificateStatement)

Declaration
public void AddQualifiedCertificateStatement(QualifiedCertificateStatement statement)
Parameters
Type Name Description
QualifiedCertificateStatement statement

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

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