IIS Key Container Lister
Summary
When encrypting portions of web.config to protect sensitive data such as API keys, aspnet_regiis
makes it easy to add new RSA keys, but not so easy to see what keys you've installed on your system.
This is a command line tool to list available RSA key containers used by IIS Express.
The meat of the functional code comes from LamonteCristo's answer on this StackOverflow thread.
Installation & Use
Run Once
- Open solution file in Visual Studio.
- Click Debug > Start without debugging.
Install On System
- Open solution file in Visual Studio.
- Set build configuration to Release.
- Click Build > Publish.
- Choose an output directory for the Windows Installer (
setup.exe
). - Choose installation method.
- Choose update strategy.
- Click Finish.
- Open output directory defined in step 4.
- Run
setup.exe
.
Run Installed
- Open a command prompt.
- Type
RsaKeyContainerLister
and press Enter.