diff -r 698ffff7024b -r c54e9bb5737e mercurial/sslutil.py --- a/mercurial/sslutil.py Thu Apr 13 11:28:48 2023 +0200 +++ b/mercurial/sslutil.py Wed Apr 12 17:28:39 2023 +0200 @@ -122,7 +122,7 @@ if ui.insecureconnections: minimumprotocol = b'tls1.0' if not ciphers: - ciphers = b'DEFAULT' + ciphers = b'DEFAULT:@SECLEVEL=0' s[b'minimumprotocol'] = minimumprotocol s[b'ciphers'] = ciphers @@ -627,7 +627,7 @@ # In tests, allow insecure ciphers # Otherwise, use the list of more secure ciphers if found in the ssl module. if exactprotocol: - sslcontext.set_ciphers('DEFAULT') + sslcontext.set_ciphers('DEFAULT:@SECLEVEL=0') elif util.safehasattr(ssl, b'_RESTRICTED_SERVER_CIPHERS'): sslcontext.options |= getattr(ssl, 'OP_CIPHER_SERVER_PREFERENCE', 0) # pytype: disable=module-attr