Generate Signing Keys
Goal
Generate a key pair that can be used to sign and verify OCM component versions. Pick the tab that matches the algorithm you want to use.
You’ll end up with
- A private key file for signing component versions
- A public key file for sharing with consumers who need to verify signatures
Estimated time: ~2 minutes
Key management tips
| Key | Who has it | Purpose |
|---|---|---|
| Private key | Only you (the signer) | Sign component versions |
| Public key | Anyone who needs to verify | Verify signatures |
- Use different key pairs for different environments (dev, staging, production)
- Document which public key corresponds to which signing identity
- Consider key rotation policies for long-lived projects
Troubleshooting
Symptom: “command not found: openssl”
Fix: Install OpenSSL:
- macOS:
brew install openssl - Ubuntu/Debian:
sudo apt-get install openssl - RHEL/CentOS:
sudo dnf install openssl
Symptom: “command not found: gpg”
Fix: Install GnuPG:
- macOS:
brew install gnupg - Ubuntu/Debian:
sudo apt-get install gnupg - RHEL/CentOS:
sudo dnf install gnupg2
Symptom: Permission denied when creating files
Fix: Ensure you have write permissions in the current directory, or specify a full path where you have access.
Next Steps
- How-to: Configure Signing Credentials - Set up OCM to use your keys for signing and verification
- How-to: Sign a Component Version - Use your private key to sign components
- How-to: Verify a Component Version - Share your public key and verify signatures
Related documentation
- Concept: Signing and Verification - Understand how OCM signing and verification works
- Tutorial: Sign Your First Component - A hands-on tutorial for signing components end-to-end
- Tutorial: GPG Signatures - End-to-end GPG signing tutorial
Prev
Deployer