klyn.net.TlsOptions.withCaFile
method

    public withCaFile(value as Object) as TlsOptions throws ProtocolException:

Description

Returns a copy with a custom CA certificate file.

Parameters

Parameter | Description
--- | ---
`value` | `String` or `Path`.

Throws

- ProtocolException if the provided URL, path, TLS option, certificate option, or protocol value is invalid or unsupported.

Example

    import klyn.net

    tls = TlsOptions.clientDefault().withCaFile("ca.pem")
    print(tls.caFile)