Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


request security pki node-local key-pair export



Export the keypair for an end-entity (EE) certificate. Junos OS encrypts the exported keypair.

You can export the PKI key-pairs file as a backup or to check the file for troubleshooting purposes.

We recommend providing permission to the request security pki node-local key-pair export command only to the privileged users.


certificate-id certificate-id

Name of the local digital certificate.

filename filename

Target directory location and filename of the CA digital certificate.

passphrase passphrase

(Optional) Passphrase to protect the keypair data for PEM format. The passphrase can be up to 64 characters. If specified, the passphrase must be used when importing the keypair.

type (der | pem)

(Optional) Type of format, either DER or PEM. PEM is the default.

Required Privilege Level


Output Fields

This command produces no output.

Release Information

Command introduced in Junos OS Release 22.3R1