mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
Print digest of public keys in the key details in different formats: Print SHA256 SSH digest as used to by SSH users: ssh-keygen -l -f ~/.ssh/id_rsa.pub Print SHA1 X509 key digest as shown in the Subject key identifier of a certificate Print SHA256 digest as in: openssl pkey -pubout -outform DER < key.pem | sha256sum as requested by this issue. Refactored digesting functionality by a generic Digest() function working with QByteArrays. The function formatHash() now also expects a QByteArray input.
27 lines
382 B
C++
27 lines
382 B
C++
/* vi: set sw=4 ts=4:
|
|
*
|
|
* Copyright (C) 2001 - 2009 Christian Hohnstaedt.
|
|
*
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef __KEYDETAIL_H
|
|
#define __KEYDETAIL_H
|
|
|
|
#include "ui_KeyDetail.h"
|
|
|
|
class pki_key;
|
|
|
|
class KeyDetail: public QDialog, public Ui::KeyDetail
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
KeyDetail(QWidget *parent);
|
|
void setKey(pki_key *key);
|
|
void setupFingerprints(pki_key *key);
|
|
|
|
|
|
};
|
|
#endif
|