fix: generate cert if tls is on and its not found
fixes #8191 fixes #8192
This commit is contained in:
parent
3c12915fd3
commit
500067a778
1 changed files with 3 additions and 2 deletions
|
|
@ -1082,8 +1082,9 @@ bool MainWindow::regenerateLocalFingerprints()
|
||||||
{
|
{
|
||||||
TlsCertificate tls;
|
TlsCertificate tls;
|
||||||
if (!tls.generateFingerprint(m_appConfig.tlsCertPath())) {
|
if (!tls.generateFingerprint(m_appConfig.tlsCertPath())) {
|
||||||
QMessageBox::critical(this, tr("TLS Fingerprint Error"), tr("Failed to calculate keys"));
|
if (!m_tlsUtility.generateCertificate()) {
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue