Skip to content

Importing certificate chain will now correctly set backing secret value to chain remainder#405

Merged
james-gould merged 8 commits into
masterfrom
bug/importing-cert-chain-only-persists-one
Dec 21, 2025
Merged

Importing certificate chain will now correctly set backing secret value to chain remainder#405
james-gould merged 8 commits into
masterfrom
bug/importing-cert-chain-only-persists-one

Conversation

@james-gould
Copy link
Copy Markdown
Owner

Describe your changes

When importing a certificate chain, the backing secret that is automatically generated should contain the entire chain, minus the certificate returned as the CertificateWithPolicy from ImportAsync. This change detects an X509Certificate2Collection and handles the logic branch appropriately.

Issue ticket number and link

Checklist before requesting a review

  • I have performed a self-review of my code.
  • I have ran the test suite locally to ensure no breaking changes have been added.
  • I have not removed or changed Azure Key Vault endpoints which break SDK functionality.
  • I have added new tests, if applicable.

@james-gould james-gould linked an issue Dec 21, 2025 that may be closed by this pull request
@james-gould james-gould merged commit 33a7043 into master Dec 21, 2025
1 check passed
@james-gould james-gould deleted the bug/importing-cert-chain-only-persists-one branch December 21, 2025 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Importing chained certificate not resolving correctly

1 participant