Can we import PGP encryption key in Google could KMS and use that key decrypt the files in google storage ?
Asked
Active
Viewed 671 times
1 Answers
0
In the documentation, you can find the list of supported key type. PGP private keys aren't supported. You can store it in secret manager (and, behind the scene, KMS will be used to encrypt your secret).
Or you can encrypt it manually. Generate an encryption key with Cloud KMS, encrypt the PGP private key, and store the encryption somewhere (in your app, in GCS, in Git repo,...). The only thing that you have to do when you want to use it is to perform the opposite process and decipher the PGP private key with Cloud KMS.

guillaume blaquiere
- 66,369
- 2
- 47
- 76