Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add object format to support pfx #175

Merged
merged 2 commits into from
Aug 1, 2020
Merged

Conversation

aramase
Copy link
Member

@aramase aramase commented Jul 28, 2020

What this PR does / why we need it:

  • Adds a new objectFormat field that user can configure to pem or pfx. Default format is pem.
    • Setting type to pfx will return the raw data (base64 encoded) as is from the Key Vault
    • objectFormat: pfx is only supported with objectType: secret as key vault only supports pfx format for type secret. key and cert objects are returned in pem format.

Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
Fixes #138

Special notes for your reviewer:

az keyvault secret download

  • downloads the cert and key in PEM format for PEM imported content
  • downloads the cert and key in base64 encoded PFX format for PKCS12/ECC imported content

This change adds a similar behavior, providing user the option to set objectFormat: pfx for secret type.

@ritazh
Copy link
Member

ritazh commented Jul 31, 2020

The PR looks great! Can you pls add a e2e for this?

@aramase aramase force-pushed the pfx-or-pem branch 3 times, most recently from fe4eb8b to 9451c5c Compare July 31, 2020 23:15
Copy link
Member

@ritazh ritazh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@aramase
Copy link
Member Author

aramase commented Aug 1, 2020

/azp run pr-e2e-azure

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Get certificate in pfx format
2 participants