Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get RSA custom container key list using aspnet_regiis

Tags:

c#

asp.net

iis

rsa

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?

like image 447
Kim Avatar asked Mar 23 '16 01:03

Kim


Video Answer


1 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.

like image 140
Maaark Avatar answered Sep 26 '22 21:09

Maaark