diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2011-06-27 16:10:17 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2011-06-27 16:10:17 +1200 |
commit | 0a642f2441f30988db3ca5db276716e2371e6f2f (patch) | |
tree | daeac568322aefc1b49582d97d9510a5638e160b /libmproxy/cmdline.py | |
parent | f004326855126e01e7a095fc65562c41060ffbed (diff) | |
download | mitmproxy-0a642f2441f30988db3ca5db276716e2371e6f2f.tar.gz mitmproxy-0a642f2441f30988db3ca5db276716e2371e6f2f.tar.bz2 mitmproxy-0a642f2441f30988db3ca5db276716e2371e6f2f.zip |
Make the certificate wait time configurable.
Since OpenSSL doesn't let us set certificate start times in the past, the
client and proxy machine time must be synchronized, or the client might reject
the certificate. We can bodgy over small discrepancies by waiting a few seconds
after a new certificate is generated (i.e. the first time an SSL domain is contacted).
Make this a configurable option, and turn it off by default.
Diffstat (limited to 'libmproxy/cmdline.py')
-rw-r--r-- | libmproxy/cmdline.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libmproxy/cmdline.py b/libmproxy/cmdline.py index ce68baed..238853c6 100644 --- a/libmproxy/cmdline.py +++ b/libmproxy/cmdline.py @@ -116,6 +116,12 @@ def common_options(parser): ) parser.add_option_group(group) + parser.add_option( + "--cert-wait-time", + action="store", dest="cert_wait_time", default=0, + help="Wait for specified number of seconds after a new cert is generated. This can smooth over small discrepancies between the client and server times." + ) + group = optparse.OptionGroup(parser, "Server Replay") group.add_option( "-s", |