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
ParameterDescription
valueString or Path.
Throws
  • SSLException if TLS options, certificates, trust paths, or socket creation are invalid.
Example
import klyn.net.ssl

context = SSLContext.clientDefault().withCaPath("/etc/ssl/certs")
print(context.caPath)