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.