Hi, I am using both Azure & WinForms applications, with common libraries in .NET 4. I have encrypted my connection strings in my Azure app using the approach here:
http://blogs.msdn.com/b/sqlazure/archive/2010/09/07/10058942.aspx That is working fine, no issue with the Azure side (this is not an Azure question).
I have now encrypted the connection strings in my app.config file of my windows app, and have imported the .pfx certificate into my certificate store. When I run my app after just importing the certificate, it works fine. It decrypts the connection strings
and works. After I reboot however, it fails because it does not have access to the private key in the .pfx file. I assume that's because the private key needs to be authenticated again.
I am a newbie to encryption, and although I've spent the past few days finding what I can, but I can't crack the right way to work with this.
How can I embed the private key in the .pfx file, so when I run the app on my development machine, it will have access to the private key & work?
View Complete Post