aboutsummaryrefslogtreecommitdiffstats
path: root/mitmdump
diff options
context:
space:
mode:
authorHenrik Nordstrom <henrik@henriknordstrom.net>2011-02-16 15:49:54 +0100
committerHenrik Nordstrom <henrik@henriknordstrom.net>2011-02-16 15:50:44 +0100
commit7758385ac15e02d06c89db684fd75846a130c318 (patch)
tree229cf93ce02aa464878d74317e12dcdbaa4ea33b /mitmdump
parentd1fb761ae77dd0bac834a0f823a32b465a56f132 (diff)
downloadmitmproxy-7758385ac15e02d06c89db684fd75846a130c318.tar.gz
mitmproxy-7758385ac15e02d06c89db684fd75846a130c318.tar.bz2
mitmproxy-7758385ac15e02d06c89db684fd75846a130c318.zip
Extract common SSL certificate option processing
Diffstat (limited to 'mitmdump')
-rwxr-xr-xmitmdump7
1 files changed, 1 insertions, 6 deletions
diff --git a/mitmdump b/mitmdump
index ee00bd92..2d379f37 100755
--- a/mitmdump
+++ b/mitmdump
@@ -43,12 +43,7 @@ if __name__ == '__main__':
if options.quiet:
options.verbose = 0
- options.cert = os.path.expanduser(options.cert)
- options.certpath = os.path.expanduser(options.certpath)
-
- if not os.path.exists(options.cert):
- print >> sys.stderr, "Creating bogus certificate at %s"%options.cert
- utils.make_bogus_cert(options.cert)
+ utils.process_certificate_option_group(options)
proxy.config = proxy.Config(
certfile = options.cert,