372
Type
Default name
DSA
dsakey
ECDSA
ecdsakey
Usage guidelines
The key algorithm must be the same as required by the security application.
When you create an RSA or DSA key pair, enter an appropriate key modulus length at the prompt.
The longer the key modulus length, the higher the security, and the longer the key generation time.
When you create an ECDSA key pair, choose the appropriate elliptic curve. The elliptic curve
determines the ECDSA key length. The longer the key length, the higher the security, and the longer
the key generation time.
for more information about key modulus lengths and key lengths.
If you do not assign the key pair a name, the system assigns the default name to the key pair and
marks the key pair as
default
. You can also assign the default name to another key pair, but the
system does not mark the key pair as
default
. The name of a key pair must be unique among all
manually named key pairs that use the same key algorithm. If a name conflict occurs, the system
asks whether you want to overwrite the existing key pair.
The key pairs are automatically saved and can survive system reboots.
Table 41 A comparison of different types of asymmetric key algorithms
Type
Generated key pairs
Modulus/key length
RSA
•
In non-FIPS mode:
One host key pair, if you specify a key
pair name.
One server key pair and one host key
pair, if you do not specify a key pair
name.
Both key pairs use their default names.
•
In FIPS mode: One host key pair.
NOTE:
Only SSH 1.5 uses the RSA server key pair.
•
In non-FIPS mode: 512 to 2048 bits,
1024 bits by default.
To ensure security, use a minimum
of 768 bits.
•
In FIPS mode: 2048 bits.
DSA
One host key pair.
•
In non-FIPS mode: 512 to 2048 bits,
1024
bits
by default.
To ensure security, use a minimum
of 768 bits.
•
In FIPS mode: 2048 bits.
ECDSA
One host key pair.
•
In non-FIPS mode: 192, 256, 384, or
521 bits.
•
In FIPS mode: 256, 384, or 521 bits.
Examples
# Create local RSA key pairs with default names.
<Sysname> system-view
[Sysname] public-key local create rsa
The range of public key modulus is (512 ~ 2048).
If the key modulus is greater than 512, it will take a few minutes.
Press CTRL+C to abort.
Input the modulus length [default = 1024]:
Generating Keys...