createTbsCsr
fun Signer.Attestable<*>.createTbsCsr(challenge: AttestationChallenge, subjectName: List<RelativeDistinguishedName> = listOf(), additionalExtensions: List<X509CertificateExtension> = listOf(), additionalAttributes: List<Pkcs10CertificationRequestAttribute> = listOf()): KmmResult<TbsCertificationRequest>(source)
Creates a TBS CSR containing this signer's public key and attestation statement. This overload derives the subject, extensions, and attributes directly from challenge and the supplied additions.
fun Signer.Attestable<*>.createTbsCsr(challenge: AttestationChallenge, hashInput: AttestationHashInput): KmmResult<TbsCertificationRequest>(source)
Completes hashInput with this signer's public key and attestation statement. The same conversion is used for signed and hash-authenticated proofs; callers decide separately whether to sign the result.