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
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().withCaFile("ca.pem")
print(context.caFile)