gcloud kms decrypt

Decrypt a ciphertext file using a Cloud KMS key. See also: gcloud. More information: https://cloud.google.com/sdk/gcloud/reference/kms/decrypt.

gcloud kms decrypt --key=key_name --keyring=keyring_name --location=global --ciphertext-file=path/to/ciphertext --plaintext-file=path/to/plaintext

gcloud kms decrypt --key=key_name --keyring=keyring_name --location=global --additional-authenticated-data-file=path/to/file.aad --ciphertext-file=path/to/ciphertext --plaintext-file=-