创建 RSA 密钥对并在 Azure 密钥保管库中检索 public 密钥

Create RSA key pair and retrieve public key in Azure key vault

我们需要使用 Azure 密钥保管库创建 RSA 密钥对并将 RSA public 密钥复制到外部系统。要求是外部系统将使用 public 密钥加密数据,内部系统将与 Azure Key Vault 通信并解密数据。我还没有访问 Azure 密钥保管库的权限,因此请阅读文档。我有两个基本问题:

  1. 有没有办法在不使用 API (https://docs.microsoft.com/en-us/rest/api/keyvault/getkey/getkey) 的情况下使用 Azure 门户以文本格式导出 RSA public 密钥。

  2. 如果我在创建密钥时没有select'set activation'或'set expiration'日期,密钥会过期吗?它们有默认到期值吗?

提前致谢。

Is there a way to export the RSA public key in a text format using Azure portal without using API

在门户中导出密钥的唯一方法是 Download Backup,您将得到一个类似 xxxxvault1-testkey-20181227.keybackup 的文件,但密钥将被加密,无法在 Azure Key 之外使用金库系统。

如果要导出不加密的密钥,可以使用Azure CLI:

 az keyvault key show --vault-name 'keyvaultname' --name 'testkey' --version 'e8dfb0f7b7a045b5a1e80442af833270' > C:\Users\joyw\Desktop\output.txt

它会将密钥导出为文件 output.txt

If I don't select 'set activation' or 'set expiration' date while creating the keys, will the key expire? Do they have a default expiration value?

据我所知,如果您不设置到期日期,它将永远不会过期。