diff --git a/ktor-network/ktor-network-tls/jvm/src/io/ktor/network/tls/TLSConfigBuilder.kt b/ktor-network/ktor-network-tls/jvm/src/io/ktor/network/tls/TLSConfigBuilder.kt index 24ec81f329a..3c2aeb2a5d6 100644 --- a/ktor-network/ktor-network-tls/jvm/src/io/ktor/network/tls/TLSConfigBuilder.kt +++ b/ktor-network/ktor-network-tls/jvm/src/io/ktor/network/tls/TLSConfigBuilder.kt @@ -16,6 +16,8 @@ import javax.net.ssl.* public actual class TLSConfigBuilder { /** * List of client certificate chains with private keys. + * + * The Chain will be used only if the first certificate in the chain is issued by server's certificate. */ public val certificates: MutableList = mutableListOf() @@ -76,6 +78,8 @@ public actual fun TLSConfigBuilder.takeFrom(other: TLSConfigBuilder) { /** * Add client certificate chain to use. + * + * It will be used only if the first certificate in the chain is issued by server's certificate. */ public fun TLSConfigBuilder.addCertificateChain(chain: Array, key: PrivateKey) { certificates += CertificateAndKey(chain, key)