Command:  

crypto key generate rsa (IKE)


Mode:

Router(config)#


Syntax:

crypto key generate rsa [ usage-keys]

 

Syntax Description:

usage-keys

(Optional) Specifies that two RSA special usage key pairs should be generated (that is, one encryption pair and one signature pair), instead of one general-purpose key pair.

Command Description:

To generate RSA key pairs, use the crypto key generate rsaglobal configuration command.


Example:

The following example generates special-usage RSA keys:

Router(config)# crypto key generate rsa usage-keys

The name for the keys will be: myrouter.example.com

Choose the size of the key modulus in the range of 360 to 2048 for your Signature Keys. Choosing a key modulus greater than 512 may take a few minutes.

How many bits in the modulus[512]? <return>

Generating RSA keys.... [OK].

Choose the size of the key modulus in the range of 360 to 2048 for your Encryption Keys. Choosing a key modulus greater than 512 may take a few minutes.

How many bits in the modulus[512]? <return>

Generating RSA keys.... [OK].

Router(config)#

 

 

The following example generates general-purpose RSA keys:

 

Router(config)# crypto key generate rsa

The name for the keys will be: myrouter.example.com

Choose the size of the key modulus in the range of 360 to 2048 for your General Purpose Keys. Choosing a key modulus greater than 512 may take a few minutes.

How many bits in the modulus[512]? <return>

Generating RSA keys.... [OK].

Router(config)#

 


Misconceptions:

None


Related commands:

 

None


© Cisco Systems, Inc. 2001, 2002
World Wide Education






Converted from CHM to HTML with chm2web Pro 2.85 (unicode)