klyn.net.TlsOptions.TlsOptions
constructor

    public TlsOptions(verifyPeer as Boolean = true,
    caFile as String = "",
    caPath as String = "",
    clientCertificateFile as String = "",
    clientPrivateKeyFile as String = "",
    minVersion as String = "",
    maxVersion as String = ""):

Description

Creates a TLS configuration for HTTPS requests.

Parameters

Parameter | Description
--- | ---
`verifyPeer` | Enables certificate and host verification.
`caFile` | Optional CA certificate file.
`caPath` | Optional CA certificate folder.
`clientCertificateFile` | Optional client certificate file.
`clientPrivateKeyFile` | Optional client private key file.
`minVersion` | Optional minimum TLS version.
`maxVersion` | Optional maximum TLS version.

Example

    import klyn.net

    tls = TlsOptions()
    print(tls.verifyPeer)