This article describes the file system locations where Junos OS stores the certificate and private key when a self-signed local certificate is generated on an SRX
When a self-signed certificate is generated using the request security pki local-certificate generate-self-signed (Security) | Junos OS | Juniper Networks, Junos OS stores the certificate and the associated key in the following locations: