【问题标题】:generated asymmetric key in google KMS: Private or Public?在谷歌 KMS 中生成非对称密钥:私有还是公共?
【发布时间】:2022-08-03 02:48:34
【问题描述】:

很基本的问题。当我使用 google KMS 创建密钥时,该密钥是公开的还是私有的?

我需要为一个项目使用 HSM 开发一个非对称密钥对,有人问我,我对此并不十分清楚。有什么帮助吗?

    标签: private-key encryption-asymmetric google-cloud-kms


    【解决方案1】:

    当您使用 google KMS 创建非对称密钥时,会同时创建私钥和公钥。要检索公钥,您可以使用 GetPublicKey API 调用。 https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions/getPublicKey

    您无法从 Cloud KMS 检索私钥。您只能通过 AsymmetricSign 或 AsymmetricDecrypt 的 API 调用来访问它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-13
      • 2011-04-22
      相关资源
      最近更新 更多