How to get the base 64 encoded form of .pfx file?
I am trying to implement one of the azure resource manager templates
"certData": {
"type": "string",
"metadata": {
"description": "Base-64 encoded form of the .pfx file"
}
}
You can see the cert data wants that information.
According to your description, I suggest you could try to use below powershell command to generate the Base-64 encoded string.
$fileContentBytes = get-content 'D:\brando.pfx' -Encoding Byte
[System.Convert]::ToBase64String($fileContentBytes) | Out-File 'D:\pfx-bytes.txt'
It will convert the pfx to Base-64 encoded string in a txt file.