klyn.net.ssl.SSLContext.SSLContext
constructor

    public SSLContext(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 context.

Parameters

- 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. ```klyn import klyn.net.ssl context = SSLContext() print(context.verifyPeer) ```