- clear security pki local-certificate
(all | certificate-id certificate-id | system-generated)
Command modified in Release 9.1 of JUNOS software.
Clear public key infrastructure (PKI) information for local digital certificates on the device.
This statement is supported on J-series and SRX-series devices.
all—Clear information for all the local digital certificates on the device.
![]() |
Note: 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.
clear and security
show security pki local-certificate
request security pki local-certificate generate-self-signed
When you enter this command, you are provided feedback on the status of your request.
user@host> clear
security pki local-certificate system-generated