Ip ssh rsa keypair-name cisco. Username cisco password 0 ccie. Transport input ssh. Rack19r1(config)#crypto key generate rsa general-keys label cisco. The name for the keys will be: cisco. Choose the size of the key modulus in the range of 360 to 2048 for your. General Purpose Keys.
- Crypto key generate – will create a DSA Key pair. Crypto key generate rsa modulus 2048 – 2048 RSA Key.
- If you do not enter the dsa keyword, the crypto key generate command generates a DSA key pair by default. To enable SSH, you generate a DSA or RSA host key on the device. The SSH server on the ICX device uses this host DSA or RSA key, along with a dynamically generated server DSA or RSA key pair, to negotiate a session key and encryption method.
- Router(config)# crypto key generate rsa general-keys label aaa exportable The name for the keys will be:aaa 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.!
- Action 4.2 cli command 'crypto key generate rsa modulus 2048 label RTR-LOC.your-domain-name.tld exportable' action 4.3 cli command 'ip ssh rsa keypair-name RTR-LOC.your-domain-name.tld' action 4.4 cli command 'end' action 4.5 syslog msg 'Generating RSA keys'.
Introduction
Recommendations for Cryptographic Algorithms
Introduction to Cryptography
Next Generation Encryption
NGE Background Information
Categories of Cryptographic Algorithms
Symmetric Key
Public Key
Elliptic Curve
Hash
Security Levels
Cryptographic Algorithm Configuration Guidelines
IPsec VPN with Encapsulating Security Payload
Internet Key Exchange in VPN Technologies
Transport Layer Security and Cipher Suites
Acknowledgments
References
Appendix A: Minimum Cryptography Recommendations
Over the years, numerous cryptographic algorithms have been developed and used in many different protocols and functions. Cryptography is by no means static. Steady advances in computing and the science of cryptanalysis have made it necessary to adopt newer, stronger algorithms and larger key sizes. Older algorithms are supported in current products to ensure backward compatibility and interoperability. However, some older algorithms and key sizes no longer provide adequate protection from modern threats and should be replaced. This paper summarizes the security of cryptographic algorithms and parameters, gives concrete recommendations regarding which cryptography should be used and which cryptography should be replaced, and describes alternatives and mitigations.
The following table can help customers migrate from legacy ciphers to current or more secure ciphers. The table explains each cryptographic algorithm that is available, the operations that each algorithm supports, and whether an algorithm is Cisco's best recommendation. Customers should pay particular attention to algorithms designated as Avoid or Legacy. The status labels are explained following the table.
Table 1. Recommendations for Cryptographic Algorithms

You may generate an RSA private key with the help of this tool. Additionally, it will display the public key of a generated or pasted private key.

Description
RSA is an asymmetric encryption algorithm. With a given key pair, data that is encrypted with one key can only be decrypted by the other. This is useful for encrypting data between a large number of parties; only one key pair per person need exist. RSA is widely used across the internet with HTTPS.
To generate a key pair, select the bit length of your key pair and click Generate key pair. Depending on length, your browser may take a long time to generate the key pair. A 1024-bit key will usually be ready instantly, while a 4096-bit key may take up to several minutes. For a faster and more secure method, see Do It Yourself below.
CryptoTools.net does not yet have a tool for facilitating the encryption and decryption of data using RSA, but you may Do It Yourself with the instructions below.
Do It Yourself
For these steps, you will need a command line shell with OpenSSL. Ideally, you should have a private key of your own and a public key from someone else. For demonstration, we will only use a single key pair.
Generate Private Key
Run this command to generate a 4096-bit private key and output it to the private.pem file. If you like, you may change the key length and/or output file.
Crypto Key Zeroize Rsa
Derive Public Key
Cisco Crypto Key Gen Rsa
Given a private key, you may derive its public key and output it to public.pem using this command. (You may also paste your OpenSSL-generated private key into the form above to get its public key.)
Encrypt Data
We can now use this key pair to encrypt and decrypt a file, data.txt.
Decrypt Data
Given the encrypted file from the previous step, you may decrypt it like so.
