Geeks With Blogs

News
Disclaimer: The views expressed on this blog are my own and do not necessarily reflect the views of my employer.

Creative Commons License


Check out my about.me profile!

INETA Community Speakers Program

Follow enriquelima on Twitter
Locations of visitors to this page

Intentional Thinking Enrique Lima

In needing to apply this to a number of sites due to the need to standardize and centralize a connection string that is shared across multiple services, had to dive into what was involved in getting this in place.

Here is what I found:

A great patterns and practices document: http://msdn.microsoft.com/en-us/library/ff647398.aspx

But for some reason, I couldn’t find something that went along with the directive found by calling the help parameter for aspnet_regiis.

So, read the guidance but my command ended up looking like this:

aspnet_regiis -pe "connectionStrings" -prov "DataProtectionConfigurationProvider" –pkm

Where:

-pe: Section to encrypt

-prov: provider to use DPAPI or RSA

-pkm: This is the setting the help info defines as needed if you are targeting Machine.config

Posted on Friday, August 20, 2010 12:02 PM Misc , ASP.NET | Back to top


Comments on this post: Some notes on encrypting connection strings that reside in Machine.config

comments powered by Disqus

Copyright © Enrique Lima | Powered by: GeeksWithBlogs.net