Open davetapley opened 3 years ago
hi @bim-msft could you pls help to have a look? thanks
@bim-msft are there any updates on this bug? It's still present in az cli 2.31.0. Is there another workaround for downloading a pfx certificate in hex format?
The --encoding
param is used to tell CLI what encoding the secret you stored in Keyvault is. If it's stored in hex format, then before we save secret content to the specified file, CLI will unhexlify to get the origin content.
It's not used to let CLI hexlify the content and then save to the specified file.
Describe the bug
Command Name
az keyvault secret download
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az keyvault secret download --vault-name {} --name {} --file cert.pfx --encoding hex
Expected Behavior
Environment Summary
Additional Context
I don't know what the
hex
encoding would/should be used for, I was just playing around with it while debugging another issue (https://github.com/ansible-collections/ansible.windows/issues/132).