Certificate Credentials
data class CertificateCredentials(val certificate: X509Certificate, val privateKey: PrivateKey, val certificateChain: List<X509Certificate> = emptyList())
Client certificate credentials for mTLS.
Constructors
Link copied to clipboard
constructor(certificate: X509Certificate, privateKey: PrivateKey, certificateChain: List<X509Certificate> = emptyList())
Properties
Link copied to clipboard
The X.509 client certificate to present during handshake.
Link copied to clipboard
Optional intermediate certificates to send with the client certificate. The chain should be ordered from leaf to root.
Link copied to clipboard
The private key corresponding to the certificate's public key. Must be compatible with the certificate's key algorithm (RSA, EC, etc.).