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

KeyWho has itPurpose
Private keyOnly you (the signer)Sign component versions
Public keyAnyone who needs to verifyVerify 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