.pfx 文件的 Base-64 编码形式

Base-64 encoded form of the .pfx file

如何获取 .pfx 文件的 base 64 编码形式?

我正在尝试实施 Azure 资源管理器模板之一

"certData": {
      "type": "string",
      "metadata": {
        "description": "Base-64 encoded form of the .pfx file"
      }
    }

您可以看到证书数据需要该信息。

根据你的描述,我建议你可以尝试使用下面的powershell命令生成Base-64编码的字符串。

$fileContentBytes = get-content 'D:\brando.pfx' -Encoding Byte

[System.Convert]::ToBase64String($fileContentBytes) | Out-File 'D:\pfx-bytes.txt'

它将 pfx 转换为 txt 文件中的 Base-64 编码字符串。