mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-09 07:25:44 +02:00
ssl.create_default_context() leaves minimum_version at MINIMUM_SUPPORTED, so the floor came from the OpenSSL build rather than from Bambuddy. On identical OpenSSL 3.5.6, python:3.13-slim-trixie reports TLSv1_2 while a bare-metal venv reports MINIMUM_SUPPORTED -- Docker installs were floored at 1.2, bare-metal and appliance installs were not. Set minimum_version explicitly in ImplicitFTP_TLS and the MQTT client. On the P2S/X2D profiles that also cap maximum_version this becomes an exact TLS 1.2 pin. Probed against an X1C and an H2D on :990 and :8883: both complete only on TLS 1.2 and reject 1.0, 1.1 and 1.3; live FTPS login through the new path succeeds on both. Also correct a stale comment in ftp_profiles.py -- X1C and H2D refuse TLS 1.3, so cap_tls_v1_2 is a no-op there, contrary to what it claimed.