klyn.net.ssl.SSLContext.withTlsVersions
method

    public withTlsVersions(minVersion as String, maxVersion as String = "") as SSLContext:

Description

Returns a copy with minimum and optional maximum TLS versions.

Accepted values include `TLSv1.0`, `TLSv1.1`, `TLSv1.2`, `TLSv1.3`, `1.0`, `1.1`, `1.2` and `1.3`.

    import klyn.net.ssl

    context = SSLContext.clientDefault().withTlsVersions("1.2", "1.3")
    print(context.minVersion)