Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Concurrent usage of NSS DB (one writer, multiple readers)

1 view
Skip to first unread message

Nate

unread,
Sep 11, 2006, 10:21:09 AM9/11/06
to
I'm working on certificate management in GNOME, and 'no concurrent
access to NSS for a given configdir' has brought the efforts to a
standstill for now. I see that a sharable DB is on the roadmap for NSS
3.13. Awesome.

In the meantime I'm wondering if having one writer and multiple readers
to the NSS DB is a safe method of sharing a cert database between processes.

Specifically, only one process would initialize with NSS_InitReadWrite()
and all others would initialize with NSS_Init()

Any ideas?

Cheers,
Nate Nielsen

Nelson B

unread,
Sep 11, 2006, 1:11:35 PM9/11/06
to
Nate wrote:
> I'm working on certificate management in GNOME, and 'no concurrent
> access to NSS for a given configdir' has brought the efforts to a
> standstill for now. I see that a sharable DB is on the roadmap for NSS
> 3.13. Awesome.
>
> In the meantime I'm wondering if having one writer and multiple readers
> to the NSS DB is a safe method of sharing a cert database between processes.

No, it is not. Sorry.

> Specifically, only one process would initialize with NSS_InitReadWrite()
> and all others would initialize with NSS_Init()

--
Nelson B
12345678901234567890123456789012345678901234567890123456789012345678901234567890
00000000011111111112222222222333333333344444444445555555555666666666677777777778

Wan-Teh Chang

unread,
Sep 15, 2006, 8:54:44 PM9/15/06
to dev-tec...@lists.mozilla.org

The only safe method of sharing a cert database between processes
is that all processes are readers (opening the database read-only).

Wan-Teh

0 new messages