OpenPGP
To facilitate the secure addition of customer packages, OpenPGP (Pretty Good Privacy) can be utilized for self-signing and verifying the software or firmware files involved in the installation or update process on Juniper devices. OpenPGP is a widely adopted encryption standard that uses asymmetric cryptography to provide confidentiality, integrity, and non-repudiation of data.
A signer machine will be needed that has an installation of GPG to generate the private key and to sign the package.
The OpenPGP key created should be kept secure. Anyone who has access the private key would be able to sign code that can run on the customer device.
The Veriexec feature on Junos OS enforces that all software is signed by a valid authority, which is usually Juniper Networks, Inc. Customers can sign their own packages with OpenPGP (Pretty Good Privacy) to allow the package to run on Junos OS.
Currently, the OpenPGP feature is supported only on Junos OS.
This section provides a step-by-step walkthrough on how to utilize OpenPGP for veriexec, covering key generation, key installation on Junos devices, signing manifests, and verifying signed manifests using OpenPGP signatures.
request system
software add veriexec-openpgp.tgz
on the Junos device. This command ensures the
installation of the necessary components for OpenPGP integration, making them ready for
use.Once the veriexec-openpgp.tgz extension has been added, we can proceed with generating the OpenPGP keys in the signer machnine.