exception of Aladdin etoken windows 7
I have an applet that I use for the signature. I also use aladdin etoken smartcard or usb. It works perfectly on windows 2000, xp, but in windows 7, I get the following exception:The code where I load the dll of etoken is the following:
PKCS11Provider = new sun.security.pkcs11.SunPKCS11(new ByteArrayInputStream(generatePKCS11ConfigFile().getBytes()));
String eIDProviderName = PKCS11Provider.getName();
Security.addProvider(PKCS11Provider);
// load eID card (keystore)
//you don't need yet to provide a password (You might use only the public key from it)
//If you try to use the private key, a window asking for the pin will popup
char[] pin = "".toCharArray();
KeyStore.ProtectionParameter pp = new KeyStore.PasswordProtection(pin);
CallbackHandler cmdLineHdlr = new com.sun.security.auth.callback.DialogCallbackHandler();
KeyStore.Builder builder = KeyStore.Builder.newInstance(
"PKCS11",
PKCS11Provider,
new KeyStore.CallbackHandlerProtection(cmdLineHdlr));
keyStore = builder.getKeyStore(); *///in this line the exception is thrown*
keyStore.load(null, pin);
protected String generatePKCS11ConfigFile(){
System.out.println("in generatePKCS11ConfigFile");
String os = System.getProperty("os.name");
System.out.println("os: "+os);
if(os.contains("Windows")) {
if(os.contains("Windows 9"))
configDir = System.getenv("WinDir");
else
configDir = System.getenv("SystemRoot");
}
String content = "name=eToken"+"\n"+"library="+configDir+"\\system32\\eTPKCS11.dll";
System.out.println("content: "+content);
return content;
}
StackTraceconfig dir: C:\Windows
content: name = eToken
Library=C:\Windows\system32\eTPKCS11.dll
get the instance of generator: java.security.KeyStore$Builder$2@5dfaf1
java.security.KeyStoreException: KeyStore instantiation failed
in java.security.KeyStore$ Builder$ 2.getKeyStore (unknown Source)
at EtenderingSigner.loadKeyStoreFromSmartCard (EtenderingSigner.java:168)
to EtenderingSigner$ LoadeIDButtonListener.actionPerformed (EtenderingSigner.java:872)
at javax.swing.AbstractButton.fireActionPerformed (unknown Source)
in javax.swing.AbstractButton$ Handler.actionPerformed (unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed (unknown Source)
at javax.swing.DefaultButtonModel.setPressed (unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased (unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased (unknown Source)
at java.awt.Component.processMouseEvent (unknown Source)
at javax.swing.JComponent.processMouseEvent (unknown Source)
at java.awt.Component.processEvent (unknown Source)
at java.awt.Container.processEvent (unknown Source)
at java.awt.Component.dispatchEventImpl (unknown Source)
at java.awt.Container.dispatchEventImpl (unknown Source)
at java.awt.Component.dispatchEvent (unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent (unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent (unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent (unknown Source)
at java.awt.Container.dispatchEventImpl (unknown Source)
at java.awt.Component.dispatchEvent (unknown Source)
at java.awt.EventQueue.dispatchEventImpl (unknown Source)
to java.awt.EventQueue.access$ 000 (unknown Source)
in java.awt.EventQueue$ 1.run (unknown Source)
in java.awt.EventQueue$ 1.run (unknown Source)
at java.security.AccessController.doPrivileged (Native Method)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege (unknown Source)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege (unknown Source)
in java.awt.EventQueue$ 2.run (unknown Source)
in java.awt.EventQueue$ 2.run (unknown Source)
at java.security.AccessController.doPrivileged (Native Method)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege (unknown Source)
at java.awt.EventQueue.dispatchEvent (unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters (unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter (unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy (unknown Source)
at java.awt.EventDispatchThread.pumpEvents (unknown Source)
at java.awt.EventDispatchThread.pumpEvents (unknown Source)
at java.awt.EventDispatchThread.run (unknown Source)
Caused by: java.security.KeyStoreException: not found PKCS11
at java.security.KeyStore.getInstance (unknown Source)
in java.security.KeyStore$ Builder$ $2 1.run (unknown Source)
at java.security.AccessController.doPrivileged (Native Method)
... 39 more
Caused by: java.security.NoSuchAlgorithmException: no such algorithm: PKCS11 for eToken SunPKCS11 provider
at sun.security.jca.GetInstance.getService (unknown Source)
at sun.security.jca.GetInstance.getInstance (unknown Source)
at java.security.Security.getImpl (unknown Source)
... more than 42
java.lang.NullPointerException
at EtenderingSigner.getPrivateKeyAndCertChain (EtenderingSigner.java:199)
at EtenderingSigner.showEIDCertificateDetails (EtenderingSigner.java:423)
to EtenderingSigner$ LoadeIDButtonListener.actionPerformed (EtenderingSigner.java:873)
at javax.swing.AbstractButton.fireActionPerformed (unknown Source)
in javax.swing.AbstractButton$ Handler.actionPerformed (unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed (unknown Source)
at javax.swing.DefaultButtonModel.setPressed (unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased (unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased (unknown Source)
at java.awt.Component.processMouseEvent (unknown Source)
at javax.swing.JComponent.processMouseEvent (unknown Source)
at java.awt.Component.processEvent (unknown Source)
at java.awt.Container.processEvent (unknown Source)
at java.awt.Component.dispatchEventImpl (unknown Source)
at java.awt.Container.dispatchEventImpl (unknown Source)
at java.awt.Component.dispatchEvent (unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent (unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent (unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent (unknown Source)
at java.awt.Container.dispatchEventImpl (unknown Source)
at java.awt.Component.dispatchEvent (unknown Source)
at java.awt.EventQueue.dispatchEventImpl (unknown Source)
to java.awt.EventQueue.access$ 000 (unknown Source)
in java.awt.EventQueue$ 1.run (unknown Source)
in java.awt.EventQueue$ 1.run (unknown Source)
at java.security.AccessController.doPrivileged (Native Method)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege (unknown Source)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege (unknown Source)
in java.awt.EventQueue$ 2.run (unknown Source)
in java.awt.EventQueue$ 2.run (unknown Source)
at java.security.AccessController.doPrivileged (Native Method)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege (unknown Source)
at java.awt.EventQueue.dispatchEvent (unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters (unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter (unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy (unknown Source)
at java.awt.EventDispatchThread.pumpEvents (unknown Source)
at java.awt.EventDispatchThread.pumpEvents (unknown Source)
at java.awt.EventDispatchThread.run (unknown Source)
Edited by: sabre150 may 18, 2011 03:59
Code tags added to facilitate the readability of the source code.
Hello
Haven't tried with your recommendation, as for me would be impossible to change the settings for the virtual machine to display applets for each end user. [It should work from silk and browser:]
BUT I found a solution more in the following thread, post No. http://www.thatsjava.com/java-tech/70373/ 6
And it helped me to solve everything.
Everything is hidden in the pkcs11.cfg file
name = Name_on_the_grave
library = C:\Windows\System32\eTPKCS11.dll
location = 2
The last line "slot = 2' did the trick of my pain. And it rolls applet called in the browser
So that means, she can work and it works (EW)
Tags: Java
Similar Questions
-
AnyConnect and Aladdin eToken authentication
Hi all!
First part
I managed the Anyconnect VPN installation in our c2821 using MS Active Directory & Cisco Secure ACS v.4.2 authentication Radius Server for windows clients.
I have successfully install authentication in Windows using Aladdin eToken and logon Samrtcard (connector Microsoft's CA) certificate.
I have successfully the Microsoft certification authority certificate store of eToken.
I would like someone to answer the following questions: How can I use this certificate to authenticate the session on AnyConnect VPN?
Second part
I tried to customize local AnyConnect profile using Cisco AnyConnect Profile Editor. The only result: changed default username and default host. All other customizations have been ignored.
Here is my profile:
one
omitted omitted
omitted
false
true
false
All
true
Native
false
false
false
true
DisconnectOnSuspend
false
HardwareToken
SingleLocalLogon
LocalUsersOnly
false
Automatic
false
Anyone have any ideas?
Hello
You can control the parameters of AnyConnect session only if the activated/enabled 'controllable user' administrator for each XML attribute. For those that are controllable from the user, the user must be able to click on the 'Settings' button very close the list box drop-down server.
However, if you manually change the XML file on the local computer of the client, the next time AnyConnect connect, it will download the original version of the ASA and compares with local XML file. If the checksum does not match, it overrides the local XML file with the newly downloaded XML file.
You can change the preferences.xml file, and that you have discovered, AnyConnect will honor your changes. But the profile has most of the security settings as a Local Lan access, start before logon, Auto reconnection.
Thank you
Kiran
-
Cisco Anyconnect and Aladdin eToken
Hello
I want to authenticate Clients on an ASA5510 (8.4. () (2)) with a certificate on an Aladdin eToken.
If I connect with the browser (IE), everything works fine, the eToken software requires the certificate and the password and downloads the client profile. AnyConnect-connection is established.
If I connect directly with the AnyConnect Client (ver. 3.0.4235) no certificate will be used and so it has an Errormessage "no valid certificate available for authentication.
Client is Win7, but the same problem on Windows XP with full admin rights
It seems that the Anyconnect Client cannot find the certificate store.
Any idea?
Thank you.
It is not just with Aladdin eToken, same problem with certificate of local (.pfx) Standard Microsoft software installed in the certificate store
You have configured the profile XML doc section to reference the certificate?
-
How can I delete the history, except the tabs and windows open?
Hi, I don't find a way to remove all my firefox history, except the tabs and windows open.
I couldn't find any solution on the Web. I have tried almost all the settings in the privacy settings, nothing works. any ideas how to do that, or maybe suggestions for Add ons?As long as you clear the history manually and not through 'Clear history of Firefox closing' then you must keep open tabs and windows.
Firefox creates a sessionstore.js file in the Firefox profile folder?
You can check the prefs of . browser.sessionstore * including browser.sessionstore.resume_from_crash on the topic: config page and reset the browser.sessionstore prefs that are correct (in bold) user via the context menu in the default value to make sure that the Session Restore is enabled and functional.
-
I have firefox clear history when it closes and it clears my exceptions to pop up every time it closes. How firefox can erase history without deleting the exceptions to the pop-up windows? Allow this makes it difficult to play of Facebook games like farmville, because I have to allow him every time, and I have to type in rather than it to automatically. Thank you, Jamie
Do not remove the navigation, search and download history on Firefox to clear the "Site preferences".
Compensation of the "Site Preferences" clears all exceptions for cookies, images, windows pop up, installation of software and passwords.
-
Convert.ToDouble API throws the exception on German OS - Windows 2008 R2 SP1
(I used VS2010, c#, .NET Framework 4 Client Profile, Console application)
Object Value = '-1.67E + 308';
Double t = Convert.ToDouble (Value);
This API Convert.ToDouble throws the exception (the value is too large or too small for conversion into Double) on German OS - Windows 2008 R2 SP1 and it works very well on an English OS
Why is this?
Hello
The question you posted would be better suited in c# programming MSDN Forums. Please visit the link below to find a community that will provide the support you want.
Hope this information is useful.
-
My Windows Server 2008 R2 does not all connect directly to the server - level of the console or via the desktop remotely. The symptom is that Active Directory is not running. I tried to connect computers MacBook with OS X (10.5) to active directory. I can log on to your desktop and see all the network shares, so all users seem to work OK - performance is slower than usual. Logging indicates the user ID or password is not valid, but they are working on the jobs or when we book in safe mode. DCDiag does not work because it cannot log in with credentials.
Hello
Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for Windows Server on TechNet forum
http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer -
I use Windows 7 Professional 64-Bit edition and the space is getting lost because it creates many restore points, and they can be useful every hour. If I want to keep most recent restore only point and I didn't want any. How can I do this?
I use Windows 7 Professional 64-Bit edition and the space is getting lost because it creates many restore points, and they can be useful every hour. If I want to keep most recent restore only point and I didn't want any. How can I do this?
Kristan response is good for cleaning.
Now to make sure that the problem does not happen:
1. Click Start, right-click computer and click Properties
2. click on the link to the system protection in the left pane
3. in the System Protection options, select a drive letter, and then click Configure
4. under disk space drag on a number you can live with (I recommend at least 10% of your total).
5. click on OK, OK(You can also delete all this screen system restore points).
VP Tech Services -
For the last decade or so, when the use of different versions of Windows (Windows 95, Windows ME, Windows 2000, Windows XP), when I want to print a list of what I have in a sub directory (or folder), I have to go to a DOS window and use the DIR command to create a list of ASCII content. Otherwise, I have a try to make a screenshot - cumbersome when the number of files exceeds the visible window.
Hi Dave
See the following article in the solution.
How to add the feature print directory for files in Windows XP, Windows Vista or Windows 7
I hope this helps.
Thank you for using Windows 7 Ronnie Vernon MVP
-
I need to know which sites Web is allowed so that I can remove facebook.om which I allowed to past a video.
This list shows the sites that are blocked or allowed.
You can open Facebook, then click on the How do I know if my connection to a Web site is secure? and then press the button "additional information". This opens the Page Info dialog box, go to he Panel permissions and change the option pop up here.
-
Aladdin USB eToken is not recognized in VmWare Workstation 11.1
WMWare Workstation 11.1.2
Windows 7 64-bit server,
Windows 7 32 bit virtual MACHINE
Aladdin eToken PRO 72 K Java is recognized in the server, but not in the virtual machine.
We have try to disable the driver on the server, but it did not work
Thank you
Antonio Carlos
Rio de Janeiro - BR
Windows 7 64-bit server,
Windows 7 32 bit virtual MACHINE
eToken Aladin PRO Java 72 K e reconhecido no mas nao e Server na VM.
Tentamos driver acts o no mas isso nao mouse Server
Emergency solution:
VM allow access from the area of RDP (Remote Desktop);
SERVER access in the VM using the RDP client.
It was necessary to choose the smart card, plug and play devices and the Aladdin eToken Pro has been recognized -
Firefox 28 not listed in the Windows Firewall Exceptions
I am running SP3 Windows XP Prof, Firefox 28 and Windows Firewall.
I recently noticed that Firefox is 'slow' loading and connection to Web sites.
I checked the 'Exceptions' list in the Windows Firewall, but Mozilla Firefox did not appear. Why Windows Firewall application doesn't have access during the installation of Firefox? Internet Explorer was not either and that my original browser browser and becomes 'slow', that's why I changed to Firefox.
Moreover, since 'Add' and 'give permission' for Firefox, it runs a lot faster.
Thanks John!
-
Windows XP SP3. It started with Firefox v.18.0. When an activity cancels the screen saver, display back, except Firefox. FF window will be closed using the 'X' angle, but no other toolbars are visible or functional. No new modules since the 18.0 update.
Try disabling hardware acceleration in Firefox.
- Tools > Options > advanced > General > Browsing: "use hardware acceleration when available.
- https://support.Mozilla.org/KB/troubleshooting+extensions+and+themes
-
Windows Firewall "Exceptions list".
I am running SP3 Windows XP Prof, Firefox 28 and Windows Firewall.
I recently noticed that Firefox is 'slow' loading and connection to Web sites.
I checked the 'Exceptions' list in the Windows Firewall, but Mozilla Firefox did not appear. Why Windows Firewall application doesn't have access during the installation of Firefox? Internet Explorer was not either and that my original browser browser and becomes 'slow', that's why I changed to Firefox.
From 'Add' and 'give permission' for Firefox, it runs a lot faster.
The second name of the program is superantiSpyware, where SAS.
MBAM has a very good reputation, more I think it is less intrusive than SAS. That's why I suggested it.
As far as the SAS 'System tools' are concerned, those who are different from the malware scan/remove main task which is the reason to run SAS. The tools to answer the damage that could be caused by a malware attacks different various. If you have a particular symptom required by one of the tools, then go and try - I have no experience in a way or another with any of these tools. There is no reason to run all or part of the tools as part of regular maintenance.
-
Windows Exception object; Create a failure for window...
OS: Windows 7; 64 bit
I recently installed an older program that works ok.
Now when it is launched I get an "Exception ObjectWindows of" error window with the message "failed to Create for window... ».
There is no change of the system, but clearly something has changed. I don't know what happened or where to start looking for the problem.
Thank you...
Have you considered a type of Virtual Machine solution?
Windows Virtual PC
Download Windows XP Mode
http://www.Microsoft.com/Windows/Virtual-PC/Download.aspxWindows XP Mode (Windows 7 only, but not one of the Home versions) "you are not eligible to download Windows XP Mode. You must have Windows 7 Professional, enterprise or full to run Windows XP Mode." If you have an old XP CD (or other older Windows CD) available you can simply download the Virtual Machine and spend the XP Mode download.
This warranty covers the gambit set of VMS in the 'Home' versions if you want to have a look. Of course you will need a licensed copy of XP to install and run in any of them (except XP Mode).
VirtualBox is an impressive VM competitor
http://WindowsSecrets.com/search/?CX=017937947691920082874%3A_ilcm6kdy_y&COF=FORID%3A11&q=VirtualBox+is+an+impressive+VM+contender+&SA=search&advWS=1&advSAN=1&advPages=15Upgrade to another edition of Windows 7 by using Windows Anytime Upgrade
http://Windows.Microsoft.com/en-us/Windows7/help/videos/upgrade-to-another-edition-of-Windows-7-by-using-Windows-Anytime-UpgradeWindows Anytime Upgrade: Frequently asked questions
http://Windows.Microsoft.com/en-us/Windows7/Windows-Anytime-Upgrade-frequently-asked-questionsThis example may or may not work for you with your program, use the built-in Administrator account to perform the installation?
"It seems that the"Run as Administrator"command gives you administrative privileges only, and they are not enough to install Java (and OpenOffice, by association). To work around this problem, you must actually connect to the built-in administrator. Open a command prompt with admin rights by clicking Start, type cmd in the search/run box, hit CTRL-SHIFT-ENTER. At the prompt, type:
NET user administrator / Active: Yes
Then disconnect from your regular account and folder administrator integrated, where you might be able to install the program. When you are finished, open a session to your regular account and, for security reasons, disable the built-in using administrator account:
«net user administrator / active: No.»
Solve installation errors using the SubInACL tool to repair the file and registry permissions
http://blogs.msdn.com/astebner/archive/2006/09/04/solving-Setup-errors-by-using-the-Subinacl-tool-to-repair-file-and-registry-permissions.aspx
Maybe you are looking for
-
10008 error during export / a lot of (black) executives glitch
Hi guys,. I have a big problem with my Final Cut X, I have a project, and can't export it. I got the 10008 error every time. So I'm thinking, I have a glitch images in my videos. I try to fix it - for example, I delete the clip and replace it with a
-
Old devices still showing in the network map
I can't get rid of the old devices/computers of the NM network map. I remove them from the map but some time later, probably after a reboot, they show once again. Any ideas? I have the E3000 router if that makes a difference.
-
Help me!! wrt300n firmware update
new version update for WRT300N. Thank you!
-
Firefox won't start because I ended a host process for windows services
All before I've finished the process was fine, I finished a trial system named (host process for windows services) but the problem is I don't know who, and the thing is now firefow does not start, when I opened it, it freezes completely, and I think
-
Startup error: Microsoft Visual C++ Runtime Libray - runtime error
Original title: Microsoft Visual C++ Runtime Libray - runtime error Lately, once my computer is completely loaded up (and I haven't done yet), I get the error message: "Microsoft Visual C++ Runtime Libray ‑‑ runtime error." And it does not have a spe