diff options
| author | Aldo Cortesi <aldo@nullcube.com> | 2014-02-27 18:33:48 +1300 |
|---|---|---|
| committer | Aldo Cortesi <aldo@nullcube.com> | 2014-02-27 18:33:48 +1300 |
| commit | a1d0da2b533b986967a8714c02d567c943d11929 (patch) | |
| tree | 85bef20967e278071c6ac3de9546d9b7f4d8a17d /pathoc | |
| parent | 0c04abb6e4c549646c06ef9e270d1b42c1ffaf1d (diff) | |
| download | mitmproxy-a1d0da2b533b986967a8714c02d567c943d11929.tar.gz mitmproxy-a1d0da2b533b986967a8714c02d567c943d11929.tar.bz2 mitmproxy-a1d0da2b533b986967a8714c02d567c943d11929.zip | |
Expand SSL support
- Cipher suite selection for both pathoc and pathod
- SSL version specification for pathod
- Expose SSLv23 as an option, and use it by default
Diffstat (limited to 'pathoc')
| -rwxr-xr-x | pathoc | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -61,9 +61,13 @@ if __name__ == "__main__": help="SSL Server Name Indication" ) group.add_argument( + "--ciphers", dest="ciphers", type=str, default=False, + help="SSL cipher specification" + ) + group.add_argument( "--sslversion", dest="sslversion", type=int, default=1, - choices=[1, 2, 3], - help="Use a specified protocol - TLSv1, SSLv2, SSLv3. Default to TLSv1." + choices=[1, 2, 3, 4], + help="Use a specified protocol - TLSv1, SSLv2, SSLv3, SSLv23. Default to TLSv1." ) group = parser.add_argument_group( @@ -133,7 +137,8 @@ if __name__ == "__main__": ssl=args.ssl, sni=args.sni, sslversion=args.sslversion, - clientcert=args.clientcert + clientcert=args.clientcert, + ciphers=args.ciphers ) try: p.connect(connect_to) |
