cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
987
Views
0
Helpful
4
Replies

How can I make a directory of RSA keys by LMS 3.2

Paul Marie Palm
Level 1
Level 1

I have deployed ssh on my switches, now i want to know if it possible to collect a list of all my rsa certificates by LMS 3.2. Is it posible to do that ?

Thank for your answers.

1 Accepted Solution

Accepted Solutions

Using Netshow you can run the command on all devices to pull out the pub keys.  Then, you can script the cwcli command to extract the output, and save the keys into their respective .pub files.  For example, if you create a Netshow job number 3000, you can use the following command to obtain the output from the CLI:

cwcli netshow jobresults -u admin -p admin -id 3000

You can then use any scripting language to iterate over that output and pull out the General Purpose Key.

View solution in original post

4 Replies 4

Joe Clarke
Cisco Employee
Cisco Employee

You can use RME Netshow (RME > Tools > Netshow) to run the following command across all of your devices to get the pubkeys:

show crypto key mypubkey rsa

Hello Joseph and thank you for your answer. The fact is that I want to make a directory of rsa keys In order to share the same directory for all of ssh clients. It possible for me to make that directory by using my ssh client but it's not easy because I must connect sequentially to all devices (more than 300) and make save key in .pub files format. Is there another way to do that easily by LMS ?

Thank you

Using Netshow you can run the command on all devices to pull out the pub keys.  Then, you can script the cwcli command to extract the output, and save the keys into their respective .pub files.  For example, if you create a Netshow job number 3000, you can use the following command to obtain the output from the CLI:

cwcli netshow jobresults -u admin -p admin -id 3000

You can then use any scripting language to iterate over that output and pull out the General Purpose Key.

I will try this way.

Thank you.