Nss Sample Code sample6

Has anyone tried to run NSS sample code 6, persistent symmetric keys?:

https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/nss_sample_code/NSS_Sample_Code_sample6

I specifically do not see the second genkey(1) failing, it runs straight thru completion.

Second behavior I notice is the first time PK11_GetInternalKeySlot(), I get a -5977 error, which is PR_LOAD_LIBRARY_ERROR. But after that I get an undocumented -8192 error code (but then again it runs thru completion, never hitting a failure return case).

Iā€™d be interested in your thoughts, thanks!

1 Like