Commit 88cfe572 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Use load_cert_chain instead of load_cert.

parent 556b1666
......@@ -270,7 +270,7 @@ def do_method(module, method, params, URI=None, quiet=False, version=None,
port = url.port if url.port else 443
ctx = M2Crypto.SSL.Context("sslv23")
ctx.load_cert(CERTIFICATE, CERTIFICATE, PassPhraseCB)
ctx.load_cert_chain(CERTIFICATE, CERTIFICATE, PassPhraseCB)
ctx.set_verify(M2Crypto.SSL.verify_none, 16)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment