

Slot: NSS Internal Cryptographic Services token: NSS Generic Crypto Uri: pkcs11:library-manufacturer=Mozilla%20Foundation library-description=NSS%20Internal%20Crypto%20Services library-version=3.33 NSS="Flags=internal,critical trustOrder=75 cipherOrder=100 slotParams=(1=)" Parameters="configdir=/Users/eto/Library/Application Support/Firefox/Profiles/fault-1453211557245 certPrefix= keyPrefix= secmod=secmod.db flags=readOnly " Library= name="NSS Internal PKCS #11 Module" I dunno if this would help, but I ran the modutil on the FireFox profile and is dumping this info: modutil -dbdir "/Users/eto/Library/Application Support/Firefox/Profiles/fault-1453211557245" -rawlist Caused by: .PKCS11Exception: CKR_DEVICE_ERRORĪt .PKCS11.C_Initialize(Native Method)Īt .PKCS11$SynchronizedPKCS11.C_Initialize(PKCS11.java:1545)Īt .PKCS11.getInstance(PKCS11.java:157)Īt 11.(SunPKCS11.java:330) It looks like there are problem loading the underlaying PKCS11 object. I tried changing the slot value to 0, 1 or -1 and result the same. I tried the method mentioned by but it still throw the same error. I get the same error.Īs well as trying various different configuration settings mentioned here:
MAC OS PROFILES FOR FIREFOX HOW TO
I also tried to use the solution suggested here: How to finalize SunPKCS11 Provider after it is initialized? and it was a no-go either. dylib from the weird folder, that's because I used install_name_tool in MacOS to change the to in order to get the library dependency to work (since I'm trying to run this in Eclipse rather than from Firefox itself). Sunpkcs11: Multi-threaded initialization failed: .PKCS11Exception: CKR_DEVICE_ERRORĮxception in thread "main" : Initialization failedĪt 11.(SunPKCS11.java:376)Īt 11.(SunPKCS11.java:107)

However this immediately gives me the following error: sunpkcs11: Initializing PKCS#11 library /Applications/Firefox.app/Contents/MacOS/fixed-for-java-runtime/libsoftokn3.dylib Then in Java, I've tried to load it like this: FileInputStream fis = new FileInputStream("pkcs11.cfg") NssArgs = "configdir='/Users/helloworld/Library/Application Support/Firefox/Profiles/fault-1453211557245' certPrefix='' keyPrefix='' secmod='secmod.db' flags='readOnly' " Library = "/Applications/Firefox.app/Contents/MacOS/fixed-for-java-runtime/libsoftokn3.dylib" Pkcs11.cfg configuration as follow: name = FirefoxKeyStore I've already tried several different configuration and directly loading it via PKCS11 but nothing worked, can anyone give me some pointer?
MAC OS PROFILES FOR FIREFOX MAC
I discovered a quite different process for El Capitan on The Mac Observer OS X: Repair Home Folder Permissions, which I have not tried, and so cannot speak to its efficacy.I managed to get the SunPKCS11 to work with Firefox ESR 52.0 under Windows, but I am unable to get it to load in MacOS. When the process completes, quit Terminal. After entering the diskutil command, if Terminal says that permissions reset on user home directory failed (error -69841), enter chflags -R nouchg ~, then enter the diskutil command again. keyboards, the ` character is just above the Tab key. Paste or type this command in Terminal, then press Return: diskutil resetUserPermissions / `id -u` When the progress bar completes, open the Terminal app from the Utilities folder of your Applications folder.A progress bar appears at the top of the window.

Click the Action menu in the bottom corner of the window, then choose “Apply to enclosed items.” Click OK to confirm the action.If the Lock button at the bottom of the window shows a closed lock, click the lock and enter an administrator name and password.If the “Sharing & Permissions” section at the bottom of the window isn't open, click the triangle in that section to open it.An Info window for your home folder opens. From the Finder menu bar, choose Go > Home.If the issue occurred after changing the permissions of items in your home folder, follow these steps to reset the permissions: Resolve issues caused by changing the permissions of items in your home folder.It's included below, and the original can be found here: So the reset process I used is for Sierra. Before doing this, I had upgraded to Sierra from El Capitan. This issue, as well as issues I was having with iTunes and f.lux, were resolved by resetting permissions on the home folder.
