Problem exporting RSA key -'key not valid for use in specified state'
Posted
by asp316
on Stack Overflow
See other posts from Stack Overflow
or by asp316
Published on 2010-04-16T15:22:42Z
Indexed on
2010/04/16
15:53 UTC
Read the original article
Hit count: 363
I'm encrypting the web.config in our web sites using aspnet_regiis. However, I want the ability to export the encryption key so if we need to move from Machine A to Machine B, asp.net will be able to decrypt it.
When I run aspnetregiis -px "NetFrameworkConfigurationKey" c:\keys.xml -pri, I get the following : 'Key not valid for use in specified state'. I've seen all kinds of responses online but they don't seem to apply. It's not an invalid key because when I use aspnet_regiis to encrypt sections of the web.config, they encrypt fine.
Ideas?
© Stack Overflow or respective owner