Add spacing to improve readability of fingerprint (#4588)

This commit is contained in:
Ben 2021-05-09 13:54:10 -07:00 committed by GitHub
parent 8d8e10672e
commit df9dc4892b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -60,6 +60,7 @@ If you depend on these features, please raise your voice in
* Switch Docker image release to be based on Debian (@PeterDaveHello) * Switch Docker image release to be based on Debian (@PeterDaveHello)
* Multiple Browsers: The `browser.start` command may be executed more than once to start additional * Multiple Browsers: The `browser.start` command may be executed more than once to start additional
browser sessions. (@rbdixon) browser sessions. (@rbdixon)
* Improve readability of SHA256 fingerprint. (@wrekone)
* --- TODO: add new PRs above this line --- * --- TODO: add new PRs above this line ---
* ... and various other fixes, documentation improvements, dependency version bumps, etc. * ... and various other fixes, documentation improvements, dependency version bumps, etc.

View File

@ -60,7 +60,7 @@ def flowdetails(state, flow: mitmproxy.flow.Flow):
text.append(urwid.Text([("head", "Server Certificate:")])) text.append(urwid.Text([("head", "Server Certificate:")]))
parts = [ parts = [
("Type", "%s, %s bits" % c.keyinfo), ("Type", "%s, %s bits" % c.keyinfo),
("SHA256 digest", c.fingerprint().hex()), ("SHA256 digest", c.fingerprint().hex(' ')),
("Valid to", str(c.notafter)), ("Valid to", str(c.notafter)),
("Valid from", str(c.notbefore)), ("Valid from", str(c.notbefore)),
("Serial", str(c.serial)), ("Serial", str(c.serial)),