CertifiedKey

class CertifiedKey(val certificate: X509Certificate, val signer: Signer)(source)

A private key together with the certificate that binds it: the unit an issuer actually signs with.

This is issuing material, private key included -- which is the point of a fake-attestation generator.

Constructors

Link copied to clipboard
constructor(certificate: X509Certificate, signer: Signer)

Properties

Link copied to clipboard
val certificate: X509Certificate
Link copied to clipboard
val signer: Signer
Link copied to clipboard
val subject: List<RelativeDistinguishedName>

Functions

Link copied to clipboard
fun certify(subject: List<RelativeDistinguishedName>, subjectKey: CryptoPublicKey, validity: Validity, role: Role, extensions: List<X509CertificateExtension> = emptyList()): X509Certificate
Link copied to clipboard
fun certifySubordinateCa(subject: List<RelativeDistinguishedName>, validity: Validity, pathLength: Int?): CertifiedKey

Generates a fresh key and certifies it as a CA under this one.

Link copied to clipboard

This key as reusable configuration.