Skip to content

Commit

Permalink
Allow ancient ciphers for sslxmlrpc.
Browse files Browse the repository at this point in the history
  • Loading branch information
carboxylman committed Nov 19, 2022
1 parent 2527663 commit 68a4e2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test-common.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,10 @@ def do_method(module, method, params, URI=None, quiet=False, version=None,
port = url.port if url.port else 443

ctx = ssl.create_default_context(ssl.Purpose.SERVER_AUTH)
try:
ctx.set_ciphers("DEFAULT:@SECLEVEL=0")
except:
pass
if authenticate:
ctx.load_cert_chain(CERTIFICATE,password=passphrase)
if not verify:
Expand Down

0 comments on commit 68a4e2e

Please sign in to comment.