Skip to content

Commit

Permalink
add tls/security details of connection/request (TLS protocol, cipher)…
Browse files Browse the repository at this point in the history
… to mitmweb (mitmproxy#4117)
  • Loading branch information
gorogoroumaru authored Jul 30, 2020
1 parent b1e1b1f commit 2f33d6c
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mitmproxy/tools/web/static/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,34 @@ exports[`ConnectionInfo Component should render correctly 1`] = `
address
</td>
</tr>
<tr>
<td>
TLS version:
</td>
<td>
TLSv1.2
</td>
</tr>
<tr>
<td>
cipher name:
</td>
<td>
cipher
</td>
</tr>
<tr>
<td>
<abbr
title="ALPN protocol negotiated"
>
ALPN:
</abbr>
</td>
<td>
http/1.1
</td>
</tr>
</tbody>
</table>
`;
Expand Down Expand Up @@ -62,6 +90,34 @@ exports[`Details Component should render correctly 1`] = `
address
</td>
</tr>
<tr>
<td>
TLS version:
</td>
<td>
TLSv1.2
</td>
</tr>
<tr>
<td>
cipher name:
</td>
<td>
cipher
</td>
</tr>
<tr>
<td>
<abbr
title="ALPN protocol negotiated"
>
ALPN:
</abbr>
</td>
<td>
http/1.1
</td>
</tr>
</tbody>
</table>
<h4>
Expand Down Expand Up @@ -91,6 +147,14 @@ exports[`Details Component should render correctly 1`] = `
address
</td>
</tr>
<tr>
<td>
TLS version:
</td>
<td>
TLSv1.2
</td>
</tr>
</tbody>
</table>
<div />
Expand Down
18 changes: 18 additions & 0 deletions web/src/js/components/FlowView/Details.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,24 @@ export function ConnectionInfo({ conn }) {
<td>{conn.sni}</td>
</tr>
)}
{conn.tls_version && (
<tr key="tls_version">
<td>TLS version:</td>
<td>{conn.tls_version}</td>
</tr>
)}
{conn.cipher_name && (
<tr key="cipher_name">
<td>cipher name:</td>
<td>{conn.cipher_name}</td>
</tr>
)}
{conn.alpn_proto_negotiated && (
<tr key="ALPN">
<td><abbr title="ALPN protocol negotiated">ALPN:</abbr></td>
<td>{conn.alpn_proto_negotiated}</td>
</tr>
)}
</tbody>
</table>
)
Expand Down

0 comments on commit 2f33d6c

Please sign in to comment.