Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


clear security pki node-local local-certificate



Clear public key infrastructure (PKI) information for local digital certificates on the local device in a Multinode High Availability system.


  • all—Clear information for all the local digital certificates on the device.

    You cannot clear the automatically generated self-signed certificate using clear security pki local-certificate all command. To clear the self-signed certificate you need to use system-generated as an option.

  • certificate-id certificate-id —Clear the specified local digital certificate with this certificate ID.

  • system-generated—Clear the existing automatically generated self-signed certificate and generate a new self-signed certificate.

Required Privilege Level

clear and security

Output Fields

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

Sample Output

This command produces no output.

Release Information

Command modified in Junos OS Release 22.3R1