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 authored and khaexy committed Aug 5, 2024
1 parent 9924ee0 commit 22b6fa5
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 22b6fa5

Please sign in to comment.