This article describes a scenario where the customer needs to load a local certificate into the configuration using a command which requires access to the private key. The customer is inquiring whether it's possible to load the certificate directly from PKI storage or into the "grpc ssl" section instead.
set security certificates local <certname> load-key-file <key-file-name>
/var/db/certs/common/keypair/<certificate-id>.priv
show security pki local-certificate certificate-id <certificate-id>
The issue was that the customer could not load a certificate from this PKI in the GRPC part of the config.
Adding the "use-pki" knob solved the issue:
root@sw# set system services extension-service request-response grpc ssl use-pki local-certificate <certificate_id>
system services extension-service request-response grpc