Re: NSS API documentation - Am I missing something?

John Dennis <[email protected]>
Newsgroups gmane.comp.mozilla.crypto
Message-ID <[email protected]>
On 03/18/2017 02:36 AM, [email protected] wrote:
> I am trying to create a simple program that does some basic
> management of an NSS database (add/update/remove) certificates, and
> I'm having a terrible time finding documentation for even basic
> stuff.  (E.g. how do I iterate through a CERTCertList?)

The best documentation on these is the NSS source code. In particular 
the source to the certutil command line utility.

cmd/certutil/certutil.c

Look for ListCerts on line 575.

It's also useful and instructive to search the code base for other 
references to the same types, often you'll discover a pattern or see 
some other tidbit that's useful.

> The documentation on developer.mozilla.org seems *really*
> incomplete.

I think many would agree.

> Is there a better source somewhere that I'm missing?

Probably not, I think most developers using NSS learn it from studying 
either the NSS source or source code that uses NSS.

At one time there was better doc online but I think some of it has 
disappeared with various attempts to organize Mozilla developer doc.

-- 
John
-- 
dev-tech-crypto mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-crypto
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.