diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2011-02-16 23:09:42 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2011-02-16 23:09:42 +1300 |
commit | d9374ff97b07eb517d36aca8f81c3d6a7c7d93cc (patch) | |
tree | eef37026b9fb6ff37b69451cc44904cb03f4e554 /mitmdump | |
parent | f5511350eb383a2d2d73c6d1ae328f6eb00f501f (diff) | |
download | mitmproxy-d9374ff97b07eb517d36aca8f81c3d6a7c7d93cc.tar.gz mitmproxy-d9374ff97b07eb517d36aca8f81c3d6a7c7d93cc.tar.bz2 mitmproxy-d9374ff97b07eb517d36aca8f81c3d6a7c7d93cc.zip |
Extract common SSL certificate options into a group.
Use this only in mitmdump and mitmproxy for now.
Diffstat (limited to 'mitmdump')
-rwxr-xr-x | mitmdump | 21 |
1 files changed, 1 insertions, 20 deletions
@@ -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, |