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

Returns a copy with a custom CA certificate file.

Parameters
  • value `String` or `Path`. ```klyn import klyn.net.ssl context = SSLContext.clientDefault().withCaFile("ca.pem") print(context.caFile) ```
Throws
  • SSLException if TLS options, certificates, trust paths, or socket creation are invalid.