gui: Show certificate-related info in logs

This commit is contained in:
Povilas Kanapickas 2020-07-19 11:56:18 +03:00
parent 345bb4b62b
commit c815abf0e8
1 changed files with 4 additions and 0 deletions

View File

@ -949,6 +949,10 @@ void MainWindow::updateSSLFingerprint()
{ {
if (m_AppConfig->getCryptoEnabled() && m_pSslCertificate == nullptr) { if (m_AppConfig->getCryptoEnabled() && m_pSslCertificate == nullptr) {
m_pSslCertificate = new SslCertificate(this); m_pSslCertificate = new SslCertificate(this);
connect(m_pSslCertificate, &SslCertificate::info, [&](QString info)
{
appendLogInfo(info);
});
m_pSslCertificate->generateCertificate(); m_pSslCertificate->generateCertificate();
} }
if (m_AppConfig->getCryptoEnabled() && Fingerprint::local().fileExists()) { if (m_AppConfig->getCryptoEnabled() && Fingerprint::local().fileExists()) {