TbsCertificationRequest

@Serializable
data class TbsCertificationRequest(val version: Int = 0, val subjectName: List<RelativeDistinguishedName>, val publicKey: CryptoPublicKey, val attributes: List<Pkcs10CertificationRequestAttribute> = listOf()) : Asn1Encodable<Asn1Sequence> (source)

The meat of a PKCS#10 Certification Request: The structure that gets signed

Parameters

version

defaults to 0

subjectName

list of subject distinguished names

publicKey

nomen est omen

attributes

nomen est omen

Constructors

Link copied to clipboard
constructor(subjectName: List<RelativeDistinguishedName>, publicKey: CryptoPublicKey, extensions: List<X509CertificateExtension>? = null, version: Int = 0, attributes: List<Pkcs10CertificationRequestAttribute>? = null)

Convenience constructor for adding X509CertificateExtensions to a CSR (in addition to generic attributes

constructor(version: Int = 0, subjectName: List<RelativeDistinguishedName>, publicKey: CryptoPublicKey, attributes: List<Pkcs10CertificationRequestAttribute> = listOf())

Types

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val version: Int = 0

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun encodeToDerSafe(): KmmResult<ByteArray>
Link copied to clipboard
open override fun encodeToTlv(): Asn1Sequence
Link copied to clipboard
Link copied to clipboard
open fun encodeToTlvSafe(): KmmResult<Asn1Sequence>
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open infix fun withImplicitTag(tagValue: ULong): Asn1Element