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.
import klyn.net.ssl

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