Get RSA custom container key list using aspnet_regiis

Viewed 7391

Is there anyway to get custom key container list that I already made?

Example: I make Machine key "MyKeys1", "MyKeys2", "MyKeys3" ect. In case I forgot any key that I have made, can I retrieve it using aspnet_regiis?

flag

I already tried this:

  1. aspnet_regiis -pc "MyKeys" -exp

  2. aspnet_regiis -pc "MachineKeys2" -exp

Can I retrieve those key container using aspnet_regiis? because in Crypto/RSA/MachineKeys, the files name just only random number. In case I forgot, what keys that I have ever made. Is it possible to retrieve it using aspnet_regiis?

2 Answers

Building on ShaneC's mention of Derek W's short c# program, you can save some time by just opening the files within %ProgramData%\Microsoft\Crypto\RSA\MachineKeys in a text editor. The key container name will be the only readable part.

Related