mike55 Posted June 21, 2006 Posted June 21, 2006 Hi all I have the a web.config file, that has a encrypted connection string in it. I am getting the following error: Failed to decrypt using provider 'RsaProtectedConfigurationProvider'. Error message from the provider: The RSA key container could not be opened I have found that I need to decrypt the key using the following command in the dos prompt: aspnet_regiis.exe -pd "connectionStrings" -app "/connectionTest" The problem that I am encountering at the moment is I am unsure what to submit in as the "connectionStrings" and "/connectionTest". Has anyone employed this command before? Mike55. Quote A Client refers to the person who incurs the development cost. A Customer refers to the person that pays to use the product. ------ My software never has bugs. It just develops random features. (Mosabama vbforums.com)
mike55 Posted June 21, 2006 Author Posted June 21, 2006 Problem solved, got rid of the encryption for now. Quote A Client refers to the person who incurs the development cost. A Customer refers to the person that pays to use the product. ------ My software never has bugs. It just develops random features. (Mosabama vbforums.com)
bri189a Posted June 22, 2006 Posted June 22, 2006 I didn't know aspnet_regiis did those extra things...very good to know...as to your problem...is it possible that you're encrypting on one machine and then trying to decrypt on another. Maybe this is stating the obvious but if not...the encryption is probably based upon machine specific keys...but I don't think that's the case reading your post but you know how it is, the obvious problem is sometime ignored...anyway... I did figure out that 'section' refers to something like: <section name="customHandler" type="blah...." /> And I'm calling this like: aspnet_regiis -pe "customHanlder" -app "/MySite" But I'm getting an error on that. Documentation isn't much help. Let me know if you find any more on this, I'm interested to know about it myself now. Quote
mike55 Posted June 22, 2006 Author Posted June 22, 2006 Funny feeling that you are correct regarding the source of my problems with the decryption, as it was another developer who started the encryption and decryption and then went home with his machine. Mike55. Quote A Client refers to the person who incurs the development cost. A Customer refers to the person that pays to use the product. ------ My software never has bugs. It just develops random features. (Mosabama vbforums.com)
Administrators PlausiblyDamp Posted June 22, 2006 Administrators Posted June 22, 2006 IIRC it does rely on the keys used to encrypt the section being present for the decryption. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.