2011年8月24日 星期三

Generate RSA key pair

 

router1(config)#crypto key generate rsa modulus 1024

The above command generate 2 sets of key-pair by default

router1#sh crypto key mypubkey rsa
% Key pair was generated at: 00:33:47 UTC Mar 1 2002
Key name: router1.test.com ==> Key#1 general purpose key
Storage Device: not specified
Usage: General Purpose Key
Key is not exportable.
Key Data:
  30819F30 0D06092A 864886F7 0D010101 05000381 8D003081 89028181 00BD2FEC
  2D84B376 4A3B40E1 23D093EF 787612E2 8056A542 AF940046 7B7CAF77 66F1602B
  B691F96A F77357E5 EEF0B390 FF7A5967 7A46ABFC 8209EF33 79928A75 60029D49
  D08AF484 86D3D46C 4DF98BE9 58F25EB4 9571B416 DD743A97 A9E70D3D 78A865A8
  5FC212A6 B05A56E6 735F7DE7 AF984687 FE76BB09 C879992D 73A02849 A7020301 0001
% Key pair was generated at: 00:33:48 UTC Mar 1 2002
Key name: router1.test.com.server ==> Key#2 used for SSH server
Temporary key
Usage: Encryption Key
Key is not exportable.
Key Data:
  307C300D 06092A86 4886F70D 01010105 00036B00 30680261 00BA3B8F 741F507A
  65EE725A 11C10CA8 7C81AB2E 4916AE80 61DF5FB5 8E395926 AAC3C463 73CFEDB0
  52B744A8 A3FC83FE 7C4EC409 7888E99E AD8FF386 7A51EC89 EDD06228 0C7BE942
  FA73A850 4B1C4ACC FD746976 500F319A 3E6892C0 EE054BF5 BF020301 0001

沒有留言: