klyn.net.TlsOptions.withCaPath
method

    public withCaPath(value as Object) as TlsOptions throws ProtocolException:

Description

Returns a copy with a custom CA certificate directory.

Parameters

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

Throws

- ProtocolException if the provided URL, path, TLS option, certificate option, or protocol value is invalid or unsupported.