Skip to content

Commit

Permalink
CHECK-VERSIONS: Allow use with newest OpenSSL
Browse files Browse the repository at this point in the history
Latest OpenSSL hardened more the ciphers selection
  • Loading branch information
lephilousophe committed Aug 13, 2023
1 parent 0b45771 commit b159083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check-versions/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
TLSv1_CONTEXT = ssl.create_default_context()
try:
TLSv1_CONTEXT.minimum_version = ssl.TLSVersion.TLSv1
TLSv1_CONTEXT.set_ciphers("EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH:@SECLEVEL=1")
TLSv1_CONTEXT.set_ciphers("DEFAULT@SECLEVEL=0")
except AttributeError:
# Too old python won't have TLSVersion, let's hope it will allow TLSv1.0
pass
Expand Down

0 comments on commit b159083

Please sign in to comment.