Skip to content
Snippets Groups Projects
Commit 86b9a385 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Fix breakage introduced in commit a8b3b09d


The order of the calls to “ctx.use_privatekey” and “ctx.use_certificate”
was wrong, leading to an exception being thrown.

Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent a8b3b09d
No related branches found
No related tags found
No related merge requests found
......@@ -334,7 +334,7 @@ def PrepareX509CertKeyCheck(cert, key):
"""
ctx = OpenSSL.SSL.Context(OpenSSL.SSL.TLSv1_METHOD)
ctx.use_certificate(cert)
ctx.use_privatekey(key)
ctx.use_certificate(cert)
return ctx.check_privatekey
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment