ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Smart Card Reader.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Smart Card Reader.

    Hi all,
    I am having a smart card which I want to use with my java code for cryptography. I am able to retrieve keys from the reader and use them for encryption and decryption using three or four java programs working together, but when I integrated this code with my software it is showing error in the encryption part,

    java.security.InvalidKeyException: No installed provider supports this key: sun.security.pkcs11.P11Key$P11PrivateKey

    The same encryption code is working pretty well when called from another sepearet code. Can anybody tell me what may be the problem, when I tracked the code execution, I found that the problem comes in encryption code when it calls the cipher constructor with the private key as a parameter, the same portion shows no problem at all when executed seperately!!!

    Thanks in advance,
    Meera.
Working...
X