gpgkms

command
v2.37.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2026 License: AGPL-3.0 Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command gpgkms creates OpenPGP signatures with an RSA key held in Google Cloud KMS, so the release signing private key never leaves KMS.

The OpenPGP key is derived from the KMS public key and keyCreated. The creation time is part of the OpenPGP fingerprint, so it is pinned below and must stay the same for the lifetime of the key. RSA PKCS#1 v1.5 signatures are deterministic, so the exported public key (including its self-signature) is identical every time it is generated.

Usage:

gpgkms public-key -key <version>
gpgkms sign -key <version> [-prepend <sig>] -out <file.asc> <file>

<version> is a CryptoKeyVersion resource name with the algorithm RSA_SIGN_PKCS1_4096_SHA256, e.g. projects/p/locations/l/keyRings/r/cryptoKeys/k/cryptoKeyVersions/1. Credentials come from Application Default Credentials.

-prepend takes an existing binary (unarmored) detached signature, such as one made by `gpg --detach-sign`, and writes its signature packets before the KMS signature. This lets a release be signed by the old and new keys at once, with the old key's signature first.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL