Simone - 2014-02-03

I want to perform a digital signature using a SmartCard and SHA256withRSA.
My Smart Card is from InfoCamere and it has 2 private RSA signing keys. The first key use SHA1withRSA and the second (labelled with DSPrivateKey#0) use SHA256withRSA.
I select the second key (setting the KEY_LABEL as in your example code) but the signature is performed using SHA1withRSA. How can I use SHA256?

Thanks
Simone