Skip to content

[KeyVault] Fixed import key from encrypted certificate in Add-AzKeyVaultKey #20239

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

Merged
merged 6 commits into from
Nov 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/KeyVault/KeyVault.Test/PesterTests/Key.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ Describe "Update key" {
}

Describe "Import key" {
It "Import a RSA key from pfx certificate"{
Add-AzKeyVaultKey -VaultName bez-kv1123 -KeyName bez-key1123 -KeyFilePath "$PSScriptRoot\..\Resources\importkeytest.pfx" -KeyFilePassword (ConvertTo-SecureString 123456 -AsPlainText -Force)
}

It "should throw when key type EC and curve name are not paired" {
{
Add-AzKeyVaultKey -VaultName veakkine-kv -Name PSECImportedKey -KeyFilePath E:\targetBlob.byok -KeyType EC -ErrorAction Stop
Expand Down
Binary file not shown.
1 change: 1 addition & 0 deletions src/KeyVault/KeyVault/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Additional information about change #1
-->
## Upcoming Release
* Fixed certificate export parameter issue in `Add-AzKeyVaultKey` [#19623]
* Fixed CertificateString decoding issue in `Import-AzKeyVaultCertificate`
* Shifted the location of key CVM release policy to GitHub [#19984]
* Added fallback logic (reading default CVM policy from a local copy) if fetching default CVM Policy from GitHub failed.
Expand Down
Loading