Skip to content

change tls to use lax tls version and legacy ciphers#2

Open
JonathanPrince wants to merge 1 commit into
gglessner:mainfrom
JonathanPrince:ease_tls_requirements
Open

change tls to use lax tls version and legacy ciphers#2
JonathanPrince wants to merge 1 commit into
gglessner:mainfrom
JonathanPrince:ease_tls_requirements

Conversation

@JonathanPrince

Copy link
Copy Markdown

I was having connection issues with the TLS handshake being rejected by version/cipher mismatches.

connect_to_server builds the context with ssl._create_unverified_context(), disabling cert verification but it will inherit OpenSSL 3.x defaults: TLS 1.2 minimum + SECLEVEL=2.
SECLEVEL 2 disables SHA-1 ciphers, RSA key exchange, and 3DES

Allowing the downgrade shouldn't be an issue but will allow connections to mainframes with old TLS and sad old ciphers. Happy to gate this behind a --lax-tls flag if you'd rather keep the strict context as the default, just let me know and I'll add the toggle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant