diff options
| author | root <root@leto.panaceas.james.local> | 2021-09-07 11:08:12 +0100 | 
|---|---|---|
| committer | root <root@leto.panaceas.james.local> | 2021-09-07 11:08:12 +0100 | 
| commit | d7ef8d81f2efac07541803f332a38398a12c871f (patch) | |
| tree | 95437b57b2a2186683c5b27147ea417a07259029 /master | |
| parent | fb32539aa599ef86260fc5bf9efb51aa2f74e1e2 (diff) | |
| download | mitmproxy-pq-master.tar.gz mitmproxy-pq-master.tar.bz2 mitmproxy-pq-master.zip | |
Diffstat (limited to 'master')
| -rw-r--r-- | master/pkcs11 | 9 | 
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)  + | 
