vcki.dll over Windows XP

3/26/2013 11:02:03 AM
Gravatar
Total Posts 2

vcki.dll over Windows XP

When trying to use your virtual PKCS#11 token on a Windows XP computer, we are getting critical errors. Is that OS supported?

 

The errors are found with external tools (P12 Importer, Sun's provider for Java) but with Cryptoki Explorer as well. General information and mechanisms seem alright. Even the keys, certificates and data lists could be correct, since they are empty, if it weren't because an INTERNAL_PKCS11_ERROR message appears in te status bar.

However, the import button is disabled until that moment. Then, if clicked, an error dialog pops up reporting an unhandled exception:

 

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
Cryptware.NCryptoki.CryptokiException: Error n. -1879048193
at Cryptware.NCryptoki.Session..ctor(Token , Int32 , Object , Delegate , INCryptokiMngd )
at Cryptware.NCryptoki.Token.OpenSession(Int32 flags)
at  .()
at  . (Object , EventArgs )
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3643 (GDR.050727-3600)
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
CryptokiExplorer
Assembly Version: 1.0.1.3
Win32 Version: 1.0.1.3
CodeBase: file:///C:/Archivos%20de%20programa/Cryptware%20Cryptoki%20Explorer/CryptokiExplorer.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3634 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3643 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
NCryptoki
Assembly Version: 1.5.3.2
Win32 Version: 1.5.3.2
CodeBase: file:///C:/Archivos%20de%20programa/Cryptware%20Cryptoki%20Explorer/NCryptoki.DLL
----------------------------------------
CryptwareAPI
Assembly Version: 1.0.0.1
Win32 Version: 1.0.0.1
CodeBase: file:///C:/Archivos%20de%20programa/Cryptware%20Cryptoki%20Explorer/CryptwareAPI.DLL
----------------------------------------
NCryptokiMngd
Assembly Version: 1.1.1.2
Win32 Version: 1, 1, 2, 2
CodeBase: file:///C:/Archivos%20de%20programa/Cryptware%20Cryptoki%20Explorer/NCryptokiMngd.DLL
----------------------------------------
msvcm90
Assembly Version: 9.0.30729.4148
Win32 Version: 9.00.30729.4148
CodeBase: file:///C:/WINDOWS/WinSxS/x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.4148_x-ww_d495ac4e/msvcm90.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

 

The same crash also happens when the PIN option in the menu is selected.

3/26/2013 11:50:10 AM
Gravatar
Total Posts 300
Ugo Chirico http://www.ugochirico.com

Re: vcki.dll over Windows XP

Hi,

Virtual PKCS#11 works on XP. We didn't find any problem on XP.

The error -1879048193 (0x8FFFFFFF) means CKR_INTERNAL_PKCS11_ERROR

Virtual PKCS#11 uses a file to store the token objects. Such a file is $COMMON_APPDATA/Virtual Smart Card Reader.bin (Usually C:\Documents and Settings\All Users\Application Data\Virtual Smart Card Reader.bin)

Maybe something was wrong while writing on that file and now the Virtual token is unable to parse it.  Open it to see if there is something wrong or delete it in order to reset the virtual token.

 

 

 

3/26/2013 1:16:34 PM
Gravatar
Total Posts 2

Re: vcki.dll over Windows XP

Thanks for your prompt reply.

 

If the environment variable COMMON_APPDATA is used, then it is normal that it crashed, since it did not exist. However, it has been added and the error is still repeating. Should the '$' be used in its name too? Or is it a constant to be defined somewhere else?

5/3/2013 5:42:27 PM
dna
Gravatar
Total Posts 5

Re: vcki.dll over Windows XP

Did you tried to logout/login or have sourced the environment variable somehow (Not familiar with MS enough to do that via the shell) ?