public withClientCertificate(certificatePath as Object, privateKeyPath as Object) as SSLContext throws SSLException:
Returns a copy with a client certificate and private key.
| Parameter | Description |
|---|---|
certificatePath | Certificate file (String or Path). |
privateKeyPath | Private key file (String or Path). |
import klyn.net.ssl
context = SSLContext.clientDefault().withClientCertificate("client.crt", "client.key")
print(context.clientCertificateFile)