Skip to content

Instantly share code, notes, and snippets.

@garfbradaz
Last active April 12, 2018 19:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garfbradaz/260a82ec1f364beab891674e84d5cc45 to your computer and use it in GitHub Desktop.
Save garfbradaz/260a82ec1f364beab891674e84d5cc45 to your computer and use it in GitHub Desktop.
GOTO EndComment
This batch file will install a pre-made RSA machine key file onto a machine.
Things to note:
MyCustomKeys is an container I have specified and you can specfify whatever you want hen you create & export the keys.
The applicaton is presuming that .NET 4 is installed. For other versions please see my post:
https://mywebanecdotes.com/2016/09/17/encrypting-credentials-in-app-config-for-multiple-machines/
:EndComment
%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis -pi MyCustomKeys keys.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment