Skip to content
Permalink
Browse files

Merge PR #2380: ViewCert: show certificate's SHA-256 fingerprint.

  • Loading branch information...
mkrautz committed Jun 29, 2016
2 parents 68606fe + 0040b7b commit 4f4e5ac20834798f819fe94ee5d8a526266a148d
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/mumble/ViewCert.cpp
@@ -86,6 +86,9 @@ void ViewCert::on_Chain_currentRowChanged(int idx) {
l << tr("Serial: %1").arg(QString::fromLatin1(c.serialNumber().toHex()));
l << tr("Public Key: %1 bits %2").arg(c.publicKey().length()).arg((c.publicKey().algorithm() == QSsl::Rsa) ? tr("RSA") : tr("DSA"));
l << tr("Digest (SHA-1): %1").arg(prettifyDigest(QString::fromLatin1(c.digest(QCryptographicHash::Sha1).toHex())));
#if QT_VERSION >= 0x050000
l << tr("Digest (SHA-256): %1").arg(prettifyDigest(QString::fromLatin1(c.digest(QCryptographicHash::Sha256).toHex())));
#endif

#if QT_VERSION >= 0x050000
const QMultiMap<QSsl::AlternativeNameEntryType, QString> &alts = c.subjectAlternativeNames();

0 comments on commit 4f4e5ac

Please sign in to comment.
You can’t perform that action at this time.