Problem loading the Firefox PKCS11 provider

I'm trying to load the Firefox PKCS11 provider (softokn3.dll), but I always get the following error:
Exception in thread "main" java.security.ProviderException: Initialization failed
at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:340)
at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:86)
at javapkcs11test.Main.main(Main.java:24)
Caused by: java.io.IOException: The specified module could not be found.
C:\Program Files\Mozilla Firefox\softokn3.dll
at sun.security.pkcs11.wrapper.PKCS11.connect(Native Method)
at sun.security.pkcs11.wrapper.PKCS11.<init>(PKCS11.java:141)
at sun.security.pkcs11.wrapper.PKCS11.getInstance(PKCS11.java:154)
at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:281)
... 2 more
I've already read this thread [http://forums.sun.com/thread.jspa?threadID=5298971] which handles the same problem, but there was no solution provided that helped me.
My code is the following:
String configName = "c:/pkcs11.config";
        Provider p = new sun.security.pkcs11.SunPKCS11(configName);
        Security.addProvider(p);and my pkcs11.config looks like this:
name=NSSSoftToken
slot=2
#nssLibraryDirectory = C:\\Program Files\\Mozilla Firefox\\
#nssSecmodDirectory = "C:\\Documents and Settings\\sdm\\Application Data\\Mozilla\\Firefox\\Profiles\\tjx04kze.default"
#nssModule = fips
library=C:\Program Files\Mozilla Firefox\softokn3.dll
nssArgs="configDir='C:\\Documents and Settings\\sdm\\Application Data\\Mozilla\\Firefox\\Profiles\\tjx04kze.default' certPrefix='' keyPrefix='' secmod='secmod.db' flags=readOnly"As you can see, I commented out a few lines I tried before but that also didn't work, I tried those after reading [http://java.sun.com/javase/6/docs/technotes/guides/security/p11guide.html#NSS]
Can anyone tell me what the problem is? And it's not that it can't find the DLL file, because when i type a wrong path on purpose it gives me another error: "file doesn't exist".
I really need to get this to work, because the eventual goal is to get it to work in C++, but as i'm not very familiar with C++, I first decided to try and make it work in Java, but even that doesn't work.
Thanks in advance to anyone who wants to help me!

I found the solution myself because of a related problem I had while trying to do the same in C++.
The problem is that softokn3.dll needs to load most of the DLL files in the Program Files/Mozilla Firefox directory, but it can't find those because it's not looking for them there. When you copy all those DLL's to the WINDOWS/system32 folder, the error "Caused by: java.io.IOException: The specified module could not be found." doesn't occur anymore.
To be able to read certificates from this store, change the pkcs11.config file as follows:
name=NSSSoftToken
slot=2
library=C:\Program Files\Mozilla Firefox\softokn3.dll
nssArgs="configDir='C:/Documents and Settings/sdm/Application Data/Mozilla/Firefox/Profiles/tjx04kze.default' certPrefix='' keyPrefix='' secmod='secmod.db' flags=readOnly"Mind the single slash / in the configDir path! If you use double backslashes \\ it won't work!

Similar Messages

  • A lot of tabs loads and tells me there was a problem loading the page. How can I stop all the tabs loading because ist slows down Firefox.

    When I open Firefox, a lot of tabs try to open at the same time. They all say Problem loading the page. It happened after I tried to download a owners manual for Harley Davidson motor cycles. How can I stop all but one tab from opening.

    This can be a problem with the file [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    Delete [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.
    See:
    * http://kb.mozillazine.org/Session_Restore

  • Problems loading the SCCM 2007 R2 console

    Hello
    One of our clients has been having problems loading the SCCM 2007 R2 console.  When you open the console it returns the following error:
    “The ConfigMgr console could not connect to the ConfigMgr site database. Verify that this computer has network connectivity to the SMS Provider computer and that your user account has Remote Activation permissions on both the ConfigMgr
    site server and SMS Provider computers. For more information, see “”How to Configure DCOM Permissions for Configuration Manager Console””
    We have checked the permissions of WMI and DCOM, and everything is configured as it should be:
    http://technet.microsoft.com/en-us/library/bb932151.aspx
    http://technet.microsoft.com/en-us/library/bb633148.aspx
    The SmsAdminUI.log  is logging the following error each time that we start the ConfigMgr console:
    SQLMessage = "[HY018][11][Microsoft][ODBC SQL Server Driver][DBNETLIB]General network error. Check your network documentation.";
    The same error is logged in the smsprov.log:
    SQL Error: [HY018][11][Microsoft][ODBC SQL Server Driver][DBNETLIB]General network error. Check your network documentation.
    Can't create instance of CSecuredSource for SMS_Site [HY018][11][Microsoft][ODBC SQL Server Driver][DBNETLIB]General network error. Check your network documentation.
    The infrastructure is made of 2 servers:
    1 Server with all the SCCM roles: Primary Site Server, SMS Provider, Distribution Point, etc.
    1 Server which holds the site database: this server is hosting databases of other applications, and these other applications are working without any kind of problem.
    The firewall on both servers is down. There is no firewall device between those servers.
    Those servers are VMs hosted in a Hyper-V CSV Cluster.
    I would appreciate all the help that you can provide me with this incident.
    Thank you in advanced

    To grant Remote Activation permissions to the SMS Admins group
    From the Start menu, click Run and type Dcomcnfg.exe.
    In Component Services, click Console root, expand Component Services, expand Computers, and then click My
    Computer. On the Action menu, click Properties.
    In the My Computer Properties dialog box, on the COM Security tab, in the Launch and Activation Permissions section,
    click Edit Limits.
    In the Launch Permissions dialog box, click Add.
    In the Select User, Computers, or Groups dialog box, in the Enter the object names to select (examples): box, type SMS Admins and
    click OK.
    In the Permissions for SMS Admins section, select the check box to allow Remote Activation.
    Click OK twice, and then close Computer Management.
    http://technet.microsoft.com/en-us/library/bb633148.aspx
    Kamala kannan.c| Please remember to click “Mark as Answer” or Vote as Helpful if its helpful for you. |Disclaimer: This posting is provided with no warranties and confers no rights

  • IDM / Cannot load the email service provider

    Good day, I'm having same problem here on IDM 11g,
    When I try to "Reset Password" for user from Identity Manager - Delegated Administration
    I use the following "Manually change the Password"
    and I select "E-mail the new password to the user."
    I get the following error "An error occurred while changing the user password. Cannot load the email service provider".
    IDM changes the password "The password has been changed successfully." but still no email sent
    When I use other option "Auto-generate the Password (Randomly generated)" no email is also sent.
    Can you please help with this issue?

    Create an IT resource of type mail server. Name of IT resource should be same as specified in system pripert XL.MailServer. Bydefault its name is Email Server. Provide your mail server details in IT resource.
    Authentication      yes
    Server Name      <ip address of your mail system>
    User Login      <user login>
    User Password <password>
    After doing this, reset password of user, who's profile has email address.
    Check if this works.
    Regards,
    GP

  • TS3376 I was able to use the findmyiphone app last week, but now I have been getting an error message "Can't load findmyiphone.  There was a problem loading the application."  please help as we are trying to locate an ipod with pics of a no deceased loved

    I was able to use the findmyiphone app last week, but now I have been getting an error message "Can't load findmyiphone.  There was a problem loading the application."  please help as we are trying to locate an ipod with pics of a no deceased loved one.

    Had the same problem and the same message --  was suddenly unable to access icloud apps on my pc, also using Windows 7 and Internet Explorer. After several days of pulling my hair out, decided to try a different browser and was able to get in by using Firefox instead of Internet Explorer.  Hope this helps. 

  • I am having a problem with the FireFox browser. I have attached two files that best describe the problem. I have labeled them A & B. A is the way it should lo

    I am having a problem with the FireFox browser. I have attached two files that best describe the problem. I have labeled them A & B. A is the way it should look and B is what happens after I have I opened several tabs. I can get it back to normal if I click on VIEW than click on customize. When the customize window appears FireFox returns to its normal state. I than click on the done box and go back to what I have been doing. I tried resetting FireFox back to default settings, but that did not correct the problem.
    This began happening about a month ago. Is there a way I can fix this problem? Thanks for your help.I don't know how to attach my 2 attachments that shows the problem I am having.
    [email address removed to protect your privacy and security]
    <! [email protected] -->

    I found the images here: https://support.mozilla.org/en-US/questions/977542#answer-501598

  • When I try to open contacts from the icloud control panel on my windows 7 PC, I get an error message: can't load contacts. There was a problem loading the application.

    When I try to open contacts from the icloud control panel on my windows 7 PC, I get an error message: can't load contacts. There was a problem loading the application.

  • TS3212 Is anyone else having problems loading the newest version of iTunes (10.6.3) on Windows?

    Is anyone having problems loading the newest version of iTunes (10.6.3) using Windows Vista? My current iTunes program version 10.6.1 keeps telling me there is an update but when I try to load it the information box goes away and nothing happens.  I have tried downloading the new version from Apple web site but it brings up a warning screen of " iTunes setup.exe is not commonly downloaded and could harm your computer." I select the action of run anyway and get the next error "iTunes Setup.exe is not a valid Win32 application."  What Gives?

    I select the action of run anyway and get the next error "iTunes Setup.exe is not a valid Win32 application."
    In the course of your troubleshooting to date have you worked through the following document?
    iTunes: Windows reports that "iTunesSetup.exe is not a valid Win32 application"

  • Upon firefox update this morning, every window opens with error: CaptureMovieFox could not be initialized. Some files of the extension may be missing or there is a problem with the Firefox.

    upon firefox update this morning, every window opens with this error in a popup: ''CaptureMovieFox could not be initialized. Some files of the extension may be missing or there is a problem with the Firefox.''
    when I close the popup, the original window opens seemingly without issue.

    http://getfirebug.com/releases/firebug/1.8/
    visit this and find the compatible version of this f***ing firebug. which certainly has nothing to do with us (not-programmers). i have been having this problem for months but now the last link worked for my firefox 6. Find yours here.

  • There was a problem loading the application

    I find that I can log into iCloud with no problem but after, that every time I try to open an app I get the message
    "there was a problem loading the application"
    I'm using Safari 7.0.5
    This has been going on for quite some time and during that period I've read many threads and followed various trouble shooting guides but I can't solve it. I really would appreciate any suggestions that you might care to offer.

    Downloading Safari 5.1.7 will work, or at least that's how I now access iCloud and run the Apps. IE9 64-bit will also work. On my system it appears that IE9 32-bit has a problem with iCloud due to Norton Internet Security. When Norton's "Browser Protection" is disabled, IE9 32-bit works for me.
    With Safari, I set its Homepage to iCloud so I'd have a direct link to the iCloud website.

  • HT204053 Hi all, I am constantly running into problems opening iCloud services (mail, calendars, iWork's, etc.). I get a message stating i.e. Can't load Mail (Calendar, iWork), There was a problem loading the application. Does anybody know what a heck is

    Hi all, I am constantly running into problems opening iCloud services (mail, calendars, iWork's, etc.). I get a message stating i.e. Can't load Mail (Calendar, iWork), There was a problem loading the application. Does anybody know what a heck is going on?

        I can see that this issue has been quite extensive, and frustrating, and I am so sorry for all that has happened societygirl! I would like to help you work this issue out. Please follow & send me a Direct Message, so I can get your account specifics and help finally bring this to a resolution.
    Thank you,
    MichelleH_VZW
    Follow us on Twitter @VZWSupport

  • There is problem loading the outline into the memory, error # 1,250,005

    Hello,
    I am getting error message when opening ASO outline on edit mode in EAS 7.1.5 version. EAS server using weblogic and MYSql.
    Error Message:
    There is problem loading the outline into the memory, error # 1,250,005.
    Please let me know if any have experienced same issue or any suggestions.
    Regards,
    DS

    That error is documented as:
    ##1250005 Error [%s] Creating Environment For Outline Paging File: %s
    It sounds like it may be an issue with your temp directories (disk space?) as I believe it is going to copy the outline to a temp directory locally before opening it. That is where I would start looking..
    Tim Tow
    Applied OLAP, Inc

  • HT1338 I can;t open my iCloud account, the message I get is: there was a problem loading the application

    Hi, After login into my iCliud account and click on any of the application to open, this is the message I get: there was a problem loading the application.
    please kindly help.
    John Awe

    . nice one.. it only because my date was wrong.. thank you so much for the links.

  • ICloud on an iMac is unable to load mail. Message " Can't load mail. There was a problem loading the application. )

    I can not access my mail on my desktop. The problem is persistant and the only message I get is " Can't load mail. There was a problem loading the application. )

  • HT201412 Perfectly fine working iPad and I attempted to load the software update provided for settings. Now, all I get is a black screen with an, on again, off again apple. Restore? iTunes doesn't even recognize the device. Force quit does nothing. Now wh

    Hello,
    Perfectly fine working iPad and I attempted to load the software update provided for settings. Now all I get is an on again off again apple. Attempted hard reset to no avail. iTunes no longer recognizes the device. So......? what? how? where?
    Thanks, Richard

    And one more point, I am not an Apple user. This is my first experience and have had to learn as I go. So any explanations please break it down for a noob. I am fairly computer geeky but when it comes to Mac or Apple or iAnything... I have zero experience.

Maybe you are looking for

  • ITunes 9 has corrupted my iPod Classic

    So here is my sorry story - please let me know if you have had similar symptoms and if you have found a solution. I have a MacBook Pro, running Snow Leopard. I recently upgraded iTunes to iTunes version 9.0.2 and attempted to synchronise my iPod Clas

  • Itunes will not launch

    Itunes will not open at all, I did uninstall and re install also did create new user account and fixed hosts file according t apple instructions, reinstalled quicktime, restored system to a week earlier when it worked, disabled firewall almost did ev

  • Sum within a self-contained parent-child table

    I have two tables - a "key" table containing a multi-layer parent-child relationship, and an "amount" table containing the keys for the leaf nodes in the key table as well as numeric values (e.g. amounts). I want a query that returns each row in the

  • What format should my Music Files be in??

    HI. MacBook, iPod 160GB Classic, Etymotic ER4's IEM's, FiiO 11 Headphone Amp, iTunes (obviously) What should my Music files be stored as for the best SQ and performance?? ALAC?? If something else, could you explain why? Probably not the best question

  • ITunes 10.5 doesn't work on Win7 64 bit PC after upgrading

    I a problem starting ITunes on my computer using the latest update (10.5) I already removed all apple applications and re- installed them. It worked for a short while but not for long. I use a Win 7 PC (64 bit). even tried to install an older version