From d7ef8d81f2efac07541803f332a38398a12c871f Mon Sep 17 00:00:00 2001 From: root Date: Tue, 7 Sep 2021 11:08:12 +0100 Subject: fish --- master/pkcs11 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/master/pkcs11 b/master/pkcs11 index 30cb486..52f4c17 100644 --- a/master/pkcs11 +++ b/master/pkcs11 @@ -1,8 +1,8 @@ diff --git a/mitmproxy/net/tls.py b/mitmproxy/net/tls.py -index 4c0f1d6b..c5062272 100644 +index 4c0f1d6b..0fe4c1d1 100644 --- a/mitmproxy/net/tls.py +++ b/mitmproxy/net/tls.py -@@ -296,7 +296,25 @@ def create_client_context( +@@ -296,7 +296,30 @@ def create_client_context( # Client Certs if cert: try: @@ -18,11 +18,16 @@ index 4c0f1d6b..c5062272 100644 + + _pkey = SSL._lib.ENGINE_load_private_key( engine, bytes(pkcs11_url, 'ascii'), SSL._ffi.NULL, SSL._ffi.NULL ) + ++ print("PKEY",_pkey); ++ + pkey = SSL.PKey() + pkey._pkey = _pkey + pkey._initialized = True + + context.use_privatekey(pkey) ++ # SSL._lib.SSL_CTX_set_options(context._context, SSL._lib.SSL_OP_NO_TLSv1_3) ++ # SSL._lib.SSL_CTX_set_options(context._context, SSL._lib.SSL_OP_NO_DTLSv1) ++ # SSL._lib.SSL_CTX_set_options(context._context, SSL._lib.SSL_OP_NO_DTLSv1_2) + else: + context.use_privatekey_file(cert) + -- cgit v1.2.3