簡體   English   中英

.pfx文件的Base-64編碼形式

[英]Base-64 encoded form of the .pfx file

我如何實現azure資源管理器模板之一https://github.com/Azure/azure-quickstart-templates/blob/master/101-application- gateway-public-ip-ssl-offload / azuredeploy.json "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編碼的字符串。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM