Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Simplified setting the source_address in the TCPClient constructor | Sandor Nemes | 2016-01-11 | 1 | -2/+1 |
| | |||||
* | Added getter/setter for TCPClient source_address | Sandor Nemes | 2016-01-08 | 1 | -0/+11 |
| | |||||
* | Merge remote-tracking branch 'origin/hostname-validation' | Maximilian Hils | 2015-11-04 | 1 | -7/+30 |
|\ | |||||
| * | fix certificate verification | Maximilian Hils | 2015-11-01 | 1 | -7/+30 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit fixes netlib's optional (turned off by default) certificate verification, which previously did not validate the cert's host name. As it turns out, verifying the connection's host name on an intercepting proxy is not really straightforward - if we receive a connection in transparent mode without SNI, we have no clue which hosts the client intends to connect to. There are two basic approaches to solve this problem: 1. Exactly mirror the host names presented by the server in the spoofed certificate presented to the client. 2. Require the client to send the TLS Server Name Indication extension. While this does not work with older clients, we can validate the hostname on the proxy. Approach 1 is problematic in mitmproxy's use case, as we may want to deliberately divert connections without the client's knowledge. As a consequence, we opt for approach 2. While mitmproxy does now require a SNI value to be sent by the client if certificate verification is turned on, we retain our ability to present certificates to the client which are accepted with a maximum likelihood. | ||||
* | | minor fixes | Maximilian Hils | 2015-11-01 | 1 | -2/+0 |
|/ | |||||
* | backport changes | Thomas Kriechbaumer | 2015-09-21 | 1 | -0/+1 |
| | |||||
* | python3++ | Maximilian Hils | 2015-09-20 | 1 | -16/+12 |
| | |||||
* | python3++ | Maximilian Hils | 2015-09-20 | 1 | -3/+5 |
| | |||||
* | python3++ | Maximilian Hils | 2015-09-20 | 1 | -2/+2 |
| | |||||
* | organize exceptions, improve content-length handling | Maximilian Hils | 2015-09-17 | 1 | -59/+49 |
| | |||||
* | wip | Maximilian Hils | 2015-09-15 | 1 | -4/+4 |
| | |||||
* | don't yield empty chunks | Maximilian Hils | 2015-09-11 | 1 | -1/+2 |
| | |||||
* | add ssl_read_select | Maximilian Hils | 2015-09-10 | 1 | -0/+21 |
| | |||||
* | add tcp.Address.__hash__ | Maximilian Hils | 2015-09-08 | 1 | -0/+3 |
| | |||||
* | move sslversion mapping to netlib | Maximilian Hils | 2015-08-29 | 1 | -0/+17 |
| | |||||
* | wip | Maximilian Hils | 2015-08-28 | 1 | -17/+1 |
| | |||||
* | fix error messages | Maximilian Hils | 2015-08-25 | 1 | -2/+2 |
| | |||||
* | tcp._Connection: clean up code, fix inheritance | Maximilian Hils | 2015-08-19 | 1 | -13/+18 |
| | |||||
* | add ssl peek polyfill | Maximilian Hils | 2015-08-19 | 1 | -2/+18 |
| | |||||
* | TCPClient: more sophisticated address handling | Maximilian Hils | 2015-08-18 | 1 | -11/+23 |
| | |||||
* | add Reader.peek() | Maximilian Hils | 2015-08-18 | 1 | -0/+18 |
| | |||||
* | re-add form_out | Maximilian Hils | 2015-08-18 | 1 | -0/+2 |
| | |||||
* | allow direct ALPN callback method | Thomas Kriechbaumer | 2015-08-16 | 1 | -1/+6 |
| | |||||
* | fix mitmproxy/mitmproxy#705 | Maximilian Hils | 2015-08-03 | 1 | -1/+5 |
| | |||||
* | add distinct error for cert verification issues | Maximilian Hils | 2015-07-24 | 1 | -2/+9 |
| | |||||
* | Added a fix for pre-1.0 OpenSSL which wasn't correctly erring on failed ↵ | Kyle Morton | 2015-07-21 | 1 | -0/+7 |
| | | | | certificate validation | ||||
* | Fixing default CA which ought to be read as a pemfile and not a directory | Kyle Morton | 2015-07-21 | 1 | -1/+1 |
| | |||||
* | Fixing how certifi is made the default ca_path to simplify calling logic. | Kyle Morton | 2015-06-26 | 1 | -1/+3 |
| | |||||
* | Merge pull request #76 from kyle-m/master | Aldo Cortesi | 2015-06-24 | 1 | -10/+14 |
|\ | | | | | Provide debugging information when upstream server certificate fails validation | ||||
| * | Cleaning up upstream server verification. Adding storage of cerificate | Kyle Morton | 2015-06-22 | 1 | -8/+8 |
| | | | | | | | | | | verification errors on TCPClient object to enable warnings in downstream projects. | ||||
| * | Updating TCPServer to allow tests (and potentially other use cases) to serve | Kyle Morton | 2015-06-22 | 1 | -2/+6 |
| | | | | | | | | certificate chains instead of only single certificates. | ||||
* | | unify SSL version/method handling | Thomas Kriechbaumer | 2015-06-22 | 1 | -7/+18 |
|/ | |||||
* | mark unused variables and arguments | Thomas Kriechbaumer | 2015-06-18 | 1 | -5/+5 |
| | |||||
* | Merge branch 'master' of https://github.com/kyle-m/netlib into kyle-m-master | Aldo Cortesi | 2015-06-18 | 1 | -3/+3 |
|\ | |||||
| * | Adding certifi as default CA bundle. | Kyle Morton | 2015-06-16 | 1 | -3/+3 |
| | | |||||
* | | Only set OP_NO_COMPRESSION by default if it exists in our version of OpenSSL | Aldo Cortesi | 2015-06-18 | 1 | -1/+12 |
| | | | | | | | | | | We'll need to start testing under both new and old versions of OpenSSL somehow to catch these... | ||||
* | | Merge pull request #71 from Kriechi/landscape | Aldo Cortesi | 2015-06-18 | 1 | -5/+3 |
|\ \ | | | | | | | fix warnings and code smells | ||||
| * | | fix warnings and code smells | Thomas Kriechbaumer | 2015-06-17 | 1 | -5/+3 |
| | | | | | | | | | | | | use prospector to find them | ||||
* | | | http2: improve test suite | Thomas Kriechbaumer | 2015-06-16 | 1 | -4/+5 |
| | | | |||||
* | | | add elliptic curve during TLS handshake | Thomas Kriechbaumer | 2015-06-16 | 1 | -8/+5 |
|/ / | |||||
* | | Merge pull request #69 from kyle-m/master | Aldo Cortesi | 2015-06-16 | 1 | -0/+23 |
|\| | | | | | Adding support for upstream certificate validation when using SSL/TLS… | ||||
| * | Adding support for upstream certificate validation when using SSL/TLS with an | Kyle Morton | 2015-06-15 | 1 | -0/+23 |
| | | | | | | | | instance of TCPClient. | ||||
* | | simplify ALPN | Thomas Kriechbaumer | 2015-06-14 | 1 | -6/+2 |
| | | |||||
* | | add new TLS methods | Thomas Kriechbaumer | 2015-06-14 | 1 | -1/+4 |
| | | |||||
* | | add more tests | Thomas Kriechbaumer | 2015-06-12 | 1 | -4/+4 |
| | | |||||
* | | improve ALPN integration | Thomas Kriechbaumer | 2015-06-11 | 1 | -8/+15 |
|/ | |||||
* | fix coding style | Thomas Kriechbaumer | 2015-06-08 | 1 | -1/+1 |
| | |||||
* | http2: add warning if raw data looks like HTTP/1 | Thomas Kriechbaumer | 2015-06-08 | 1 | -1/+1 |
| | |||||
* | fix non-ALPN supported OpenSSL-related tests | Thomas Kriechbaumer | 2015-06-08 | 1 | -1/+4 |
| | |||||
* | improve ALPN support on travis | Thomas Kriechbaumer | 2015-06-08 | 1 | -8/+11 |
| |