Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

show command for crypto key

al,

what is the command to see what rsa bit level or if crypto key was configured on the router

Router(config)#crypto key generate rsa

3 ACCEPTED SOLUTIONS

Accepted Solutions

Re: show command for crypto key

John,

I don't recall a command that shows the crypto key bit size. You can view the configured key by issuing the "show crypto key mypubkey rsa" command. If you are unsure about the size of the key you can always create a new one to the size that you want.

HTH,

Mark

Re: show command for crypto key

show crypto key mypubkey rsa

Please rate the post if it is helpful. Thanks.

ovt Bronze
Bronze

Re: show command for crypto key

Piece of cake!

show crypto key my rsa

Key Data:

30819F30 0D06092A 864886F7 0D010101 05000381 8D003081 89028181 00D234A6

8ED64AAD 8AA2CBA7 B9C49A93 A5B087F9 DC41352B 38511F8C C010CBEB BBB5EB09

1AF4FA7B C9C53DD7 882EB9AD 42156F25 F93335DD 51AF7260 4FD49E0C C161CBF9

8829110B B9DFF4CA 62148238 19CCF83B 4BE0FED9 59992C7D 2EE00A1F 0D108EC6

21CA83AD 51F8A632 7E0B7FC4 BA70E9BA 7EE40208 E70FEDEA 99C55893 45020301 0001

ASN.1 DER-coded PKCS#1:

- 30819F30 - sequence

- 0609 - OID

- 2A 864886F7 0D010101 - RSA encryption

- 0500 - null

- 0381 8D003081 89028181 00 - crap

- D2...45 - public modulus (1024 bits in this case - just count bytes :)))

- 02 - integer

- 03 - exponent length

- 010001 - public exponent 65537)

Cool?

Rate if it is ;)

3 REPLIES

Re: show command for crypto key

John,

I don't recall a command that shows the crypto key bit size. You can view the configured key by issuing the "show crypto key mypubkey rsa" command. If you are unsure about the size of the key you can always create a new one to the size that you want.

HTH,

Mark

Re: show command for crypto key

show crypto key mypubkey rsa

Please rate the post if it is helpful. Thanks.

ovt Bronze
Bronze

Re: show command for crypto key

Piece of cake!

show crypto key my rsa

Key Data:

30819F30 0D06092A 864886F7 0D010101 05000381 8D003081 89028181 00D234A6

8ED64AAD 8AA2CBA7 B9C49A93 A5B087F9 DC41352B 38511F8C C010CBEB BBB5EB09

1AF4FA7B C9C53DD7 882EB9AD 42156F25 F93335DD 51AF7260 4FD49E0C C161CBF9

8829110B B9DFF4CA 62148238 19CCF83B 4BE0FED9 59992C7D 2EE00A1F 0D108EC6

21CA83AD 51F8A632 7E0B7FC4 BA70E9BA 7EE40208 E70FEDEA 99C55893 45020301 0001

ASN.1 DER-coded PKCS#1:

- 30819F30 - sequence

- 0609 - OID

- 2A 864886F7 0D010101 - RSA encryption

- 0500 - null

- 0381 8D003081 89028181 00 - crap

- D2...45 - public modulus (1024 bits in this case - just count bytes :)))

- 02 - integer

- 03 - exponent length

- 010001 - public exponent 65537)

Cool?

Rate if it is ;)

625
Views
0
Helpful
3
Replies