aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/options.py
diff options
context:
space:
mode:
authorvin01 <30344579+vin01@users.noreply.github.com>2019-09-30 17:19:52 +0000
committerThomas Kriechbaumer <Kriechi@users.noreply.github.com>2019-09-30 19:19:52 +0200
commit93f9e30728300cc5379fd90171818f642d8f24aa (patch)
tree2717de6f4dc2c70cf171ddc85262a699e5bf1ad3 /mitmproxy/options.py
parent7ef91f46a32808bf6226a993e06d0a6522a663d5 (diff)
downloadmitmproxy-93f9e30728300cc5379fd90171818f642d8f24aa.tar.gz
mitmproxy-93f9e30728300cc5379fd90171818f642d8f24aa.tar.bz2
mitmproxy-93f9e30728300cc5379fd90171818f642d8f24aa.zip
Add key_size option to define rsa key size (#3657)
Diffstat (limited to 'mitmproxy/options.py')
-rw-r--r--mitmproxy/options.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/mitmproxy/options.py b/mitmproxy/options.py
index 56146153..69ffd033 100644
--- a/mitmproxy/options.py
+++ b/mitmproxy/options.py
@@ -7,6 +7,7 @@ from mitmproxy.net import tls
CONF_DIR = "~/.mitmproxy"
LISTEN_PORT = 8080
CONTENT_VIEW_LINES_CUTOFF = 512
+KEY_SIZE = 2048
class Options(optmanager.OptManager):
@@ -173,5 +174,11 @@ class Options(optmanager.OptManager):
speedup flows browsing.
"""
)
+ self.add_option(
+ "key_size", int, KEY_SIZE,
+ """
+ TLS key size for certificates and CA.
+ """
+ )
self.update(**kwargs)