klyn.net.ssl.SSLContext.withCaPath
method
public withCaPath(value as Object) as SSLContext throws SSLException:
Description

Returns a copy with a custom CA certificate directory.

Parameters
  • value `String` or `Path`. ```klyn import klyn.net.ssl context = SSLContext.clientDefault().withCaPath("/etc/ssl/certs") print(context.caPath) ```
Throws
  • SSLException if TLS options, certificates, trust paths, or socket creation are invalid.