fix: Generate TLS certificate before generating TLS fingerprint
This commit is contained in:
parent
6f66fe767f
commit
bfb64f0653
1 changed files with 5 additions and 3 deletions
|
|
@ -1080,11 +1080,13 @@ QString MainWindow::localFingerPrintDb()
|
||||||
|
|
||||||
bool MainWindow::regenerateLocalFingerprints()
|
bool MainWindow::regenerateLocalFingerprints()
|
||||||
{
|
{
|
||||||
|
if (!QFile::exists(m_appConfig.tlsCertPath()) && !m_tlsUtility.generateCertificate()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
TlsCertificate tls;
|
TlsCertificate tls;
|
||||||
if (!tls.generateFingerprint(m_appConfig.tlsCertPath())) {
|
if (!tls.generateFingerprint(m_appConfig.tlsCertPath())) {
|
||||||
if (!m_tlsUtility.generateCertificate()) {
|
return false;
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
updateLocalFingerprint();
|
updateLocalFingerprint();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue