CertificateBuilder

Builder for certificate

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.

Properties

Link copied to clipboard
var daysValid: Long = 3

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
var keySizeInBits: Int = 1024

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.