cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
27766
Views
1
Helpful
3
Replies

show command for crypto key

johnlloyd_13
Level 9
Level 9

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

Mark Yeates
Level 7
Level 7

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

View solution in original post

jj27
Spotlight
Spotlight

show crypto key mypubkey rsa

Please rate the post if it is helpful. Thanks.

View solution in original post

ovt
Level 4
Level 4

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 ;)

View solution in original post

3 Replies 3

Mark Yeates
Level 7
Level 7

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

jj27
Spotlight
Spotlight

show crypto key mypubkey rsa

Please rate the post if it is helpful. Thanks.

ovt
Level 4
Level 4

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 ;)

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: