| Message |
|
|
Just ran a test - the PKCS11 PIN callback is not being called...which was what I expected but it was worth a try...
|
 |
|
|
We are using hardware based keys injected into CAPI through SmartCard middleware. It does not go through PKCS11.
If there is any chance this might invoke the JCAPIPKCS11PINCallback, I can give it a shot, but as they are not loaded as PKCS11 sources, it did not feel right...
|
 |
|
|
Our application accesses password protected keys and we would like to use our own password prompting for these keys.
In JCAPI, I do not see any way to set this password. I tried providing a password for the private key but this did not work.
Is there a way to set this password? If not is it something that you would consider for an enhancement?
FYI - Under our C# code, we do this by setting CspParameters.KeyPassword to the user provided password. I have not coded this at the C layer, but I believe this maps to CryptSetProvParam with values some variations of PP_SECURE_KEYEXCHANGE_PIN, PP_KEYEXCHANGE_PIN, PP_SECURE_SIGNATURE_PIN, and PP_SIGNATURE_PIN.
|
 |
|
|
This appears to have resolved the issue. Thanks.
|
 |
|
|
I am evaulating JCAPI and found that if I build and run under JDK 1.7.0_01, the JCAPI fails to initialize. If I switch to 1.6, it works fine. It seems to be the same error as the FAQ on Windows 2008/DEP references but I cannot locate a simple disable-DEP option in Windows 7 (and I really don't want to have to tell all my users to disable DEP for thsi app).
I am using 32-bit Windows 7 fully patched. My test code to this point has only run 1 line of code:
Provider provider = new JCAPIProvider();
Can you offer any suggestions on this? In the meantime I'll proceed to evaluate with Java 1.6.
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.mychoiceid.jcapitest.App.initProvider(App.java:30)
at com.mychoiceid.jcapitest.App.main(App.java:44)
Caused by: java.security.ProviderException: C:\Users\redacted\AppData\Local\Temp\JCAPI32.dll: Invalid access to memory location
at com.pheox.jcapi.j.a(Unknown Source)
at com.pheox.jcapi.JCAPIProvider.<clinit>(Unknown Source)
... 2 more
*** EDIT ***
I attached a copy of the output of my app running under JDK1.6 including the output from JCAPIUtil.getEnvironmentInfo()
Under JDK1.7, it crashes as soon as I call any function in JCAPIUtil, so I cannot output those details.
|
 |
|
|