summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--master/pkcs119
1 files 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)
+