Skip to content

Commit

Permalink
fix: app.importCertificate crash on Linux (#25536)
Browse files Browse the repository at this point in the history
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
  • Loading branch information
trop[bot] and codebytere committed Sep 20, 2020
1 parent a3ac806 commit 24691a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chromium_src/chrome/browser/certificate_manager_model.cc
Expand Up @@ -36,6 +36,7 @@ net::NSSCertDatabase* GetNSSCertDatabaseForResourceContext(
// Linux has only a single persistent slot compared to ChromeOS's separate
// public and private slot.
// Redirect any slot usage to this persistent slot on Linux.
crypto::EnsureNSSInit();
g_nss_cert_database = new net::NSSCertDatabase(
crypto::ScopedPK11Slot(PK11_GetInternalKeySlot()) /* public slot */,
crypto::ScopedPK11Slot(PK11_GetInternalKeySlot()) /* private slot */);
Expand Down

0 comments on commit 24691a4

Please sign in to comment.