Deploying an RSA Machine-Level Key Container to Encrypt a Connection String in Web.Config using Octopus Deploy

Viewed 561

I have a web farm scenario. I want to encrypt customer bank details in our database. I have a fairly good understanding of the encryption requirements, but the hard challenge is secure key storage.

Microsoft suggests that the best way to do this is to use "RSA with a Machine-Level Key Container to Encrypt a Connection String in Web.Config".

Whilst the implementation of this appears to be relatively trivial, or easy enough to follow, I'm wondering if anyone has attempted to do this during deployment using Octopus Deploy?

My assumption is that I need to make the various aspnet_regiis.exe calls using the install.ps Powershell script.

Any suggestions or code sample would be gladly welcomed if you have already solved this problem.

0 Answers
Related