Skip to content

CircuitPython TLS version in m5stack #9265

Closed
@wz2b

Description

@wz2b

I'm using circuitpython 9.0.4 on an m5stack dial and it works great, but I can't connect to my MQTT broker:

1716232267: OpenSSL Error[0]: error:1402542E:SSL routines:ACCEPT_SR_CLNT_HELLO:tlsv1 alert protocol version
1716232267: Client <unknown> disconnected: Protocol error.

I would like to be able to:

ssl_context = ssl.create_default_context()
ssl_context.options |= ssl.OP_NO_TLSv1 | ssl.OP_NO_TLSv1_1  # Disable TLS 1.0 and 1.1

but there is no .options

# dir(ssl_context)
['__class__', 'check_hostname', 'load_cert_chain', 'load_verify_locations', 'set_default_verify_paths', 'wrap_socket']

Is there any way to force TLS v1.2? If not, this is a feature request.

Adafruit CircuitPython 9.0.4 on 2024-04-16; M5Stack Dial with ESP32S3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions