You can use NSS_NoDB_Init .

On 1/6/2014 19:19, chingp...@gmail.com wrote:
I am working on a program that verifies the PKCS7 signature attached in a file 
with the cert provided by the user. Since the purpose of the program is to test 
whether the cert can verify the signature or not, I only need a temporary NSS 
database to import the cert and drop the database when it's done.

Currently, I create a new dir in /tmp every time the program starts and remove 
the dir when it exits, but I would like to avoid unnecessary file system 
access. Is there any way to create a temporary NSS database in RAM?

--
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to