Skip to content

Commit

Permalink
Fix own certificate display for the first launch
Browse files Browse the repository at this point in the history
  • Loading branch information
basyskom-jvoe committed Jul 11, 2024
1 parent a009691 commit 0b2ed4b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -901,8 +901,12 @@ void BackEnd::setupPkiConfiguration()

const bool createCertificate =
!QFile::exists(certFileName) || !QFile::exists(privateKeyFileName);
if (createCertificate && !X509Certificate::createCertificate(pkiPath))
qCFatal(backendLog, "Could not set up directory %s!", qUtf8Printable(pkiPath));
if (createCertificate) {
if (!X509Certificate::createCertificate(pkiPath))
qCFatal(backendLog, "Could not set up directory %s!", qUtf8Printable(pkiPath));
else
mOwnCertificateItemModel->updateCertificateList();
}

mPkiConfig.setClientCertificateFile(certFileName);
mPkiConfig.setPrivateKeyFile(privateKeyFileName);
Expand Down

0 comments on commit 0b2ed4b

Please sign in to comment.