Skip to Main Content

Java Programming


For appeals, questions and feedback, please email

How to use the MSCAPI private key to decrypt SAML assertion?

user-ica3oAug 2 2023

I am storing my private key in the Windows store (MMC) and trying to read it to decrypt SAML assertion, but facing an error " No installed provider supports this key:". I am using Oracle Java 1.8 version . The SunMSCAPI provider is present in providers list file as well. I wanted to know if it is possible to use the private key read from the MMC to validate/decrypt a token or is it restricted. If yes, please share the steps on how to do it. I have already tried to explicitly cast it to and failed to do so.

Post Details
Added on Aug 2 2023