Use newer digest algorithms in TLS error dialog
authorMartin Sucha <git@mm.ms47.eu>
Sun, 1 Sep 2019 09:11:59 +0000 (11:11 +0200)
committerMichael Schuster <michael@schuster.ms>
Fri, 6 Sep 2019 12:07:07 +0000 (14:07 +0200)
commitbbb295fea48ca560d7362ce9dd3eed37f16fc557
tree777a90986e03be59fd1e43c078a302ed7913282d
parent0cb1f4d14b1aae7e46bf7c25d1509a6bfee983fd
Use newer digest algorithms in TLS error dialog

MD5 has been broken for a long time now and SHA1 has been
deprecated as well. SHA1 is not used when issuing new
publicly trusted certificates since 1 January 2016[1] and
there are more and more effective attacks[2][3] against it,
so display SHA1 fingerprint only for old certificates
to encourage use of safer digests by users.

So, we display SHA-256 and SHA-512 fingerprints instead in
the common case.

[1] https://cabforum.org/wp-content/uploads/CA-Browser-Forum-BR-1.6.5.pdf
[2] https://shattered.io/static/shattered.pdf
[3] https://eprint.iacr.org/2019/459.pdf

Signed-off-by: Martin Sucha <git@mm.ms47.eu>
src/gui/sslerrordialog.cpp