ComponentSpace

Forums



XML decryption and CryptographicException: Bad Key


XML decryption and CryptographicException: Bad Key

Author
Message
ComponentSpace
ComponentSpace
ComponentSpace Development
ComponentSpace Development (2.8K reputation)ComponentSpace Development (2.8K reputation)ComponentSpace Development (2.8K reputation)ComponentSpace Development (2.8K reputation)ComponentSpace Development (2.8K reputation)ComponentSpace Development (2.8K reputation)ComponentSpace Development (2.8K reputation)ComponentSpace Development (2.8K reputation)ComponentSpace Development (2.8K reputation)

Group: Administrators
Posts: 2K, Visits: 4.6K
A CryptographicException: Bad Key error may occur whilst attempting to decrypt an encrypted SAML assertion.
If the decryption key is stored in a PFX file, ensure the key is marked for encryption and signature usage rather than just signature usage. This is the -sky exchange option when using the Microsoft makecert tool.
If this wasn't specified at PFX creation time, the following commands may be used to set this option.


openssl pkcs12 -in sp.pfx -out sp.pem
openssl pkcs12 -export -in sp.pem -out good-sp.pfx -keyex



Regards
ComponentSpace Development
GO


Similar Topics


Execution: 0.000. 2 queries. Compression Enabled.
Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....









ComponentSpace Forums


Search