public withClientCertificate(certificatePath as Object, privateKeyPath as Object) as TlsOptions throws ProtocolException:
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
tls = TlsOptions.clientDefault().withClientCertificate("client.crt", "client.key")
print(tls.clientCertificateFile)