buildX509Cert
fun buildX509Cert(publicKey: EcPublicKey, signingKey: EcPrivateKey, signatureAlgorithm: Algorithm, serialNumber: ASN1Integer, subject: X500Name, issuer: X500Name, validFrom: Instant, validUntil: Instant, builderAction: X509Cert.Builder.() -> Unit): X509Cert
Builds a new X509Cert.
Return
a X509Cert.
Parameters
publicKey
the public key for the certificate.
signingKey
Tthe key to sign the TBSCertificate with.
signatureAlgorithm
the signature algorithm to sign with.
serialNumber
the serial number in the certificate.
subject
the subject of the certificate.
issuer
the issuer of the certificate.
validFrom
the point in time the certificate is valid from.
validUntil
the point in time the certificate is valid until.
builderAction
the builder action.