-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Description
Description
"Example 2: Get cert and save it as pfx" does not work on my machine.
Specifically, the following command does nothing.
# Write to a file
[System.IO.File]::WriteAllBytes("cert.pfx", $secretByte)I was able to fix the problem by using the following command instead (source):
Set-Content -Path "cert.pfx" -Value $secretByte -AsByteStreamPerhaps this would be a nice improvement to the docs?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 45cbf981-0e5a-cf19-bc73-882d61da8001
- Version Independent ID: 63263710-e864-310a-6a42-c618857872b0
- Content: Get-AzKeyVaultCertificate (Az.KeyVault)
- Content Source: src/KeyVault/KeyVault/help/Get-AzKeyVaultCertificate.md
- Service: key-vault
- GitHub Login: @mikefrobbins
- Microsoft Alias: mirobb