CertificateStore

CertificateStore stores numerous X509 Certificates for use in CRL lists, CA lists, etc.

Example

auto store = new CertificateStore();
auto caCert = new Certificate(cast(char[])File("cacert.pem").read);
store.add(caCert);
auto untrustedCert = new Certificate(cast(char[])File("cert.pem").read);
if (untrustedCert.verify(store))
    Stdout("The untrusted cert was signed by our caCert and is valid.").newline;
else
    Stdout("The untrusted cert was expired, or not signed by the caCert").newline;

Constructors

this
this()
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

add
CertificateStore add(Certificate cert)

Add a Certificate to the store.

Variables

_certs
Certificate[] _certs;
Undocumented in source.
_store
X509_STORE* _store;
Undocumented in source.

Meta