diff --git a/services/crypto/WeaveCrypto.cpp b/services/crypto/WeaveCrypto.cpp index 50a640042f5..fd50fa87edf 100644 --- a/services/crypto/WeaveCrypto.cpp +++ b/services/crypto/WeaveCrypto.cpp @@ -63,6 +63,8 @@ WeaveCrypto::WeaveCrypto() : mAlgorithm(SEC_OID_AES_256_CBC), mKeypairBits(2048) { + // Ensure that PSM (and thus NSS) is initialized. + nsCOMPtr psm(nsGetServiceByContractID("@mozilla.org/psm;1")); } WeaveCrypto::~WeaveCrypto()