CertificateBuilder

Builder for certificate

Properties

Link copied to clipboard

Number of days the certificate is valid

Link copied to clipboard

Domains for which this certificate is valid (only relevant for KeyType.Server, ignored for other key types).

Link copied to clipboard

Certificate hash algorithm

Link copied to clipboard

IP addresses for which this certificate is valid (only relevant for KeyType.Server, ignored for other key types).

Link copied to clipboard

Certificate key size in bits

Link copied to clipboard

The usage for the generated key.

Link copied to clipboard
lateinit var password: String

Certificate password (required)

Link copied to clipboard

Certificate signature algorithm

Link copied to clipboard

The subject of the certificate, owner of the generated public key that we certify.

Functions

Link copied to clipboard
fun signWith(issuerKeyPair: KeyPair, issuerKeyCertificate: X509Certificate)
fun signWith(issuerKeyPair: KeyPair, issuerKeyCertificate: Certificate, issuerName: X500Principal)

Defines an issuer for this certificate, so it is not self-signed.