Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,327 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
While I am running the below command, I am getting error "Get-Content: A positional parameter cannot be found that accepts argument '[System.Convert]::ToBase64String'."
What could be the issue?
# [Powershell]
# Get content of certificate as byte stream, and convert to base64 string and store in .txt
$fileContentBytes = get-content ‘certificate.pfx' -AsByteStream [System.Convert]::ToBase64String($fileContentBytes) | Out-File ‘pfx-encoded-bytes.txt’
Put the expression "[System.Convert]::ToBase64String($fileContentBytes)" within parentheses. I.e.
( [System.Convert]::ToBase64String($fileContentBytes) )