X509CertOptionsImpl

Options for X.509 certificates.

Constructors

this
this(string initial_opts, Duration expiration_time)

Construct a new options object

Members

Functions

CAKey
void CAKey(size_t limit)

Mark the certificate as a CA certificate and set the path limit.

addConstraints
void addConstraints(KeyConstraints usage)

Add the key constraints of the KeyUsage extension.

addExConstraint
void addExConstraint(OID oid)

Add constraints to the ExtendedKeyUsage extension.

addExConstraint
void addExConstraint(string oid_str)

Add constraints to the ExtendedKeyUsage extension.

notAfter
void notAfter(string time_string)

Set the notAfter of the certificate.

notBefore
void notBefore(string time_string)

Set when the certificate should become valid

sanityCheck
void sanityCheck()

Check the options set in this object for validity.

Variables

challenge
string challenge;

the subject challenge password

common_name
string common_name;

the subject common name

constraints
KeyConstraints constraints;

The key constraints for the subject public key

country
string country;

the subject counry

dns
string dns;

the subject DNS

email
string email;

the subject email adress

end
X509Time end;

the subject notAfter

ex_constraints
Vector!OID ex_constraints;

The key extended constraints for the subject public key

ip
string ip;

the subject IPv4 address

is_CA
bool is_CA;

Indicates whether the certificate request

locality
string locality;

the subject locality

org_unit
string org_unit;

the subject organizational unit

organization
string organization;

the subject organization

path_limit
size_t path_limit;

Indicates the BasicConstraints path limit

serial_number
string serial_number;

the subject serial number

start
X509Time start;

the subject notBefore

state
string state;

the subject state

uri
string uri;

the subject URI

xmpp
string xmpp;

the subject XMPP

Meta