Skip to content

Commit 68a4e2e

Browse files
committed
Allow ancient ciphers for sslxmlrpc.
1 parent 2527663 commit 68a4e2e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test-common.py

+4
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,10 @@ def do_method(module, method, params, URI=None, quiet=False, version=None,
354354
port = url.port if url.port else 443
355355

356356
ctx = ssl.create_default_context(ssl.Purpose.SERVER_AUTH)
357+
try:
358+
ctx.set_ciphers("DEFAULT:@SECLEVEL=0")
359+
except:
360+
pass
357361
if authenticate:
358362
ctx.load_cert_chain(CERTIFICATE,password=passphrase)
359363
if not verify:

0 commit comments

Comments
 (0)