I have been able to use it in my application. The problem I am facing now always pops up a window, asking for a password, even though I have provided it in the code. This is a problem because I need the functionality of cryptography in the website.
Here is the code now:
string aliases = "surname for my pk"; Four [] pass = "MyPassword". Kocharaire (); Main Store KS = Keystore.Just instances ("Windows-MI"); Ks.load (tap, pass); Provider P = ks.getProvider (); Signature sig = Signature.getInstance ("SHA1withRSA", p); Personal key = (Private) Gateke (aka, pass) sig.init sign (key); Sig.update ("test" .getBytes ()); Sig.sign ();
This is working very well, but I get a popup for the password when I run the previous line. How do I stop this?
MSAPAPI provider does not support providing passwords to CAPI:
< P> A password must be supported for applications that support a compatibility mode. It allows non-blank password (but ignores) mode is enabled by default
To set a password through CAPI, you can call without a documented KP_KEYEXCHANGE_PIN or KP_SIGNATURE_PIN And hope that your built-in hardware token provider supports it (they are not completely inappropriate - documents for Windows CE and Windows Mobile, mention them, and give them header files Has been involved in L').
Comments
Post a Comment