Command:  

crypto key generate rsa (CA)


Mode:

Router(config)#


Syntax:

crypto key generate rsa[ usage-keys]


Syntax Description:

usage-keys

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

 

Command Description:

To generate RSA key pairs, use the crypto key generate rsacommand in global configuration mode.


Example:

The following example generates special-usage RSA keys:

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].

The following example generates general-purpose RSA keys. (Note, you cannot generate both special usage and general-purpose keys; you can only generate one or the other.)

myrouter(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].

 

Misconceptions:

None


Related commands:

   

None


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






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