Generate OpenPGP Keys for Secure Package Signing on Junos OS
Learn how to use OpenPGP for secure package signing on Junos OS to ensure the authenticity and integrity of software packages.
OpenPGP Overview
OpenPGP is a widely adopted encryption standard that uses asymmetric cryptography to provide confidentiality, integrity, and non-repudiation of data. You can ensure the secure addition of customer packages by using OpenPGP. This standard facilitates self-signing and verification of the software or firmware files involved in the installation or update process on Juniper Networks devices.
You must set up a signer machine that includes a GNU Privacy Guard (GPG) installation to generate a private OpenPGP key and sign any software package.
You must keep the newly created OpenPGP key secure. Anyone who has access to the private key can sign code that can run on the customer device.
Veriexec Feature for OpenPGP
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.
This section provides a step-by-step walk-through on how to use OpenPGP for veriexec, covering key generation, key installation on Junos OS devices, signing manifests, and verifying signed manifests using OpenPGP signatures.
request system
software add veriexec-openpgp.tgz on the Junos OS device. This command ensures that
the necessary components for OpenPGP integration are installed and ready for use.After you add the veriexec-openpgp.tgz extension, proceed with generating the OpenPGP keys in the signer machine.
Steps to Generate OpenPGP Keys
To set up secure package signing on Junos OS, follow the below steps: