Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Failed to add module to scmod.db using SECMODAddNewModule command

  • 4 replies
  • 2 have this problem
  • 1 view
  • Last reply by Acan1234

more options

I'm not sure this is a good place to ask this question but I had some issue with the new Firefox 58.0.2 version. On the previous Firefox version i successfully add a security device using this command SECMODAddNewModule. When i try to use the newest Firefox it failed and returning error code -2. Did you do any changes on this newest firefox that i unable to perform this operation. If yes then how can i solve this issue.

I'm not sure this is a good place to ask this question but I had some issue with the new Firefox 58.0.2 version. On the previous Firefox version i successfully add a security device using this command SECMODAddNewModule. When i try to use the newest Firefox it failed and returning error code -2. Did you do any changes on this newest firefox that i unable to perform this operation. If yes then how can i solve this issue.

All Replies (4)

more options

In version 58 we did an extension API to enumerate PKCS #11 security modules, and to make them accessible to the browser as sources of keys and certificates.

But there can be some issues connected with incompatibility of SecDB between 57 and 58. Check bugz 1377940, 1433464.

Try to create a fresh profile and check if the issue exists there. If it is, file a bug on bugzilla.mozilla.org.

more options

I had tested in the fresh install Windows 8 and fresh install Firefox 58 32 bits this issue still occurred. I had some test with Firefox version 57.0 and 59.0b9 that i get from https://ftp.mozilla.org/pub/firefox/releases/ is working fine. So i will file a bug report later on.

more options

Note that Firefox 58+ no longer uses secmode.db, but uses a text file named pkcs11.txt instead.

more options

The link that you provide is really help me a lot. Now i can successfully add security device to the firefox windows using SECMODAddNewModule . Just need to add "sql:+configDir" in the first parameter. But now when i test using the same code in the MacOS it will failed. Does anyone know why in MacOS does not work? Glad anyone could help. I tested using fresh install firefox 58 (delete the profiles) in MacOS 10.10.2.