• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
Network Chatter

Network Chatter

Network Chatter

  • How To’s
    • Network How-To’s
    • VMWare How-To’s
  • Pro Tips
  • Questions
  • Miscellaneous
  • Netacad Lecture Notes
    • ENSA-v7
  • About Network Chatter

Q: Packet Tracer: crypto key generate command does not work

May 9, 2020 Leave a Comment

If you are trying to complete Cisco Network Academy labs in Packet Tracer versus using physical equipment, you may find that there are a few things that do not work as they on physical equipment. One of these if the crypto key generate command.

The Cisco Network Academy labs ask you to enter a command like this:

crypto key generate rsa modulus 1024

In Packet Tracer, this command will give you an error. The command that you have to enter in a Packet Tracer IOS router is:

crypto key generate rsa general-keys modulus 1024

Technically, both commands are correct, here is why.

Based on Cisco configuration guides, this is the syntax for the command:

crypto key generate rsa [general-keys | usage-keys | signature | encryption ] [label key-label ] [exportable ] [modulus modulus-size ] [storage devicename: ] [on devicename: ]
general-keys(Optional) Specifies that a general-purpose key pair will be generated, which is the default.
usage-keys(Optional) Specifies that two RSA special-usage key pairs, one encryption pair and one signature pair, will be generated.
signature(Optional) Specifies that the RSA public key generated will be a signature special usage key.
encryption(Optional) Specifies that the RSA public key generated will be an encryption special usage key.
crypto key Command Reference (from Cisco’s website)

There are four options in this command (general-keys | usage-keys | signature | encryption), but these are all optional. If you don’t configure one of those options, the default is general-keys. Packet Tracer requires you to enter general-keys and does recognize this as the default if you do not specify it.

So both commands are technically correct. The issue is that Packet Tracer does not acknowledge the default setting if general-keys is not specified.

Note: This is true for Packet Tracer as of 7.3.0

Filed Under: Network Questions

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Articles

  • ProTip: How to protect yourself from config flubs with the Cisco “reload in” command.
  • HowTo: Configure an AUX port on a Cisco Router
  • HowTo: Backup your VMs off an ESXi Server

Copyright © 2025 · Dale Henninger · All Rights Reserved