Julien R Pierre - Sun Microsystems wrote:
Michael,

Michael Ströder wrote:
Wan-Teh Chang wrote:
Most NSS-based server applications open the NSS databases in
read-only mode, so they can run with multiple processes safely.  But
client applications such as Firefox and Thunderbird open the NSS
databases in read-write mode.
According to what Nelson said, cmsutil also opens in read-write mode which would IMHO not be necessary.

The reason cmsutil does that is probably so that it can import recipient certs found in PKCS#7 / S/MIME messages into the certificate database. This could probably be changed or parameterized if one does not desire that behavior.

There are other tools that initialize read-write, such as of course certutil, crlutil, pk12util, all of which have functions to write or delete objects in the database .
Actually certutil opens the certificate database read-write or read only depending on the operation. (Listing/exporting/etc opens the database r/o, keygen, importing, etc opens the database r/w). pk12util doesn't even open a database if it's just dumping out the contents of the .p12 file. It does seem to open the database r/w if even if we are exporting a key, which would be easy to fix so it doesn't.

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

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

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

Reply via email to