diff options
author | Henrik Nordstrom <henrik@henriknordstrom.net> | 2011-02-16 15:49:54 +0100 |
---|---|---|
committer | Henrik Nordstrom <henrik@henriknordstrom.net> | 2011-02-16 15:50:44 +0100 |
commit | 7758385ac15e02d06c89db684fd75846a130c318 (patch) | |
tree | 229cf93ce02aa464878d74317e12dcdbaa4ea33b /mitmdump | |
parent | d1fb761ae77dd0bac834a0f823a32b465a56f132 (diff) | |
download | mitmproxy-7758385ac15e02d06c89db684fd75846a130c318.tar.gz mitmproxy-7758385ac15e02d06c89db684fd75846a130c318.tar.bz2 mitmproxy-7758385ac15e02d06c89db684fd75846a130c318.zip |
Extract common SSL certificate option processing
Diffstat (limited to 'mitmdump')
-rwxr-xr-x | mitmdump | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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, |