createSelfSignedCert

Create a self-signed X.509 certificate.

static if(__traits(compiles, ()))
X509Certificate
createSelfSignedCert
()
(
auto const ref X509CertOptions opts
,
in PrivateKey key
,
in string hash_fn
,)

Parameters

opts X509CertOptions

the options defining the certificate to create

key PrivateKey

the private key used for signing, i.e. the key associated with this self-signed certificate

hash_fn string

the hash function to use

rng RandomNumberGenerator

the rng to use

Return Value

Type: X509Certificate

newly created self-signed certificate

Meta