fix: Generate TLS certificate before generating TLS fingerprint
This commit is contained in:
committed by
Chris Rizzitello
parent
6f66fe767f
commit
bfb64f0653
@ -1080,11 +1080,13 @@ QString MainWindow::localFingerPrintDb()
|
||||
|
||||
bool MainWindow::regenerateLocalFingerprints()
|
||||
{
|
||||
if (!QFile::exists(m_appConfig.tlsCertPath()) && !m_tlsUtility.generateCertificate()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
TlsCertificate tls;
|
||||
if (!tls.generateFingerprint(m_appConfig.tlsCertPath())) {
|
||||
if (!m_tlsUtility.generateCertificate()) {
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
updateLocalFingerprint();
|
||||
|
||||
Reference in New Issue
Block a user