Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

request security pki generate-key-pair

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
request security pki generate-key-pair certificate-id certificate-id-name
<size (512 | 1024 | 2048)>
<type (dsa | rsa)>

Description

Generate a public key infrastructure (PKI) public/private key pair for a local digital certificate.

Options

certificate-id certificate-id-name

Name of the local digital certificate and the public/private key pair.

size

(Optional) Key pair size. The key pair size can be 512, 1024, or 2048 bits. If a key pair size is not specified, the default value, 1024 bits, is applied.

type

(Optional) The algorithm to be used for encrypting the public/private key pair. The encryption algorithm can be dsa or rsa . If an encryption algorithm is not specified, the default value, rsa, is applied.

Required Privilege Level

maintenance

Output Fields

When you enter this command, you are provided feedback on the status of your request.

Sample Output

request security pki generate-key-pair

content_copy zoom_out_map
user@switch> request security pki generate-key-pair certificate-id billy size 2048             
Generated key pair billy, key size 2048 bits

Release Information

Command introduced in Junos OS Release 11.1.

footer-navigation