klyn.net.TlsOptions.withCaPath
method
public withCaPath(value as Object) as TlsOptions throws ProtocolException:
Description
Returns a copy with a custom CA certificate directory.
import klyn.net

tls = TlsOptions.clientDefault().withCaPath("/etc/ssl/certs")
print(tls.caPath)
Parameters
  • value `String` or `Path`. ```klyn import klyn.net tls = TlsOptions.clientDefault().withCaPath("/etc/ssl/certs") print(tls.caPath) ```