aboutsummaryrefslogtreecommitdiffstats
path: root/mitmdump
diff options
context:
space:
mode:
Diffstat (limited to 'mitmdump')
-rwxr-xr-xmitmdump21
1 files changed, 1 insertions, 20 deletions
diff --git a/mitmdump b/mitmdump
index c0ed7dfe..ee00bd92 100755
--- a/mitmdump
+++ b/mitmdump
@@ -26,26 +26,7 @@ if __name__ == '__main__':
usage = "%prog [options]",
version="%%prog %s"%VERSION,
)
- parser.add_option(
- "--cert", action="store",
- type = "str", dest="cert", default="~/.mitmproxy/default.pem",
- help = "SSL certificate file."
- )
- parser.add_option(
- "-c", "--cacert", action="store",
- type = "str", dest="cacert", default="~/.mitmproxy/ca.pem",
- help = "SSL CA certificate file."
- )
- parser.add_option(
- "--certpath", action="store",
- type = "str", dest="certpath", default="~/.mitmproxy/",
- help = "SSL certificate store path."
- )
- parser.add_option(
- "--ciphers", action="store",
- type = "str", dest="ciphers", default=None,
- help = "SSL ciphers."
- )
+ utils.certificate_option_group(parser)
parser.add_option(
"-p", "--port", action="store",
type = "int", dest="port", default=8080,