User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0 (Beta/Release)
Build ID: 20130917102605
Steps to reproduce:
#402712 proposes adding a PEM handling software token to NSS.
Please add helper functions that make it easy to use the token, ideally completely hiding its existence: applications shouldn't need to know about magic token names, special nickname handling, and the like. (See the NSS code in curl - it's dozens of lines.)
The functions should also probably allow directly specifying a PEM passphrase, bypassing the token login mechanism (in particular, avoiding the global state set by PK11_SetPasswordFunc so that libraries can use the PEM token without affecting the main application).