Skip to content

Enable Certificate download (.cer & .pfx)#648

Draft
nchapagain001 wants to merge 22 commits intomainfrom
users/nchapagain/EnableCertDownload
Draft

Enable Certificate download (.cer & .pfx)#648
nchapagain001 wants to merge 22 commits intomainfrom
users/nchapagain/EnableCertDownload

Conversation

@nchapagain001
Copy link
Contributor

@nchapagain001 nchapagain001 commented Mar 1, 2026

This PR adds a feature in bootstrap subcommand (&CertificateInstallation) to allow it to download certificate.

Removes ability to parse tenantId implicitly.

@nchapagain001 nchapagain001 force-pushed the users/nchapagain/EnableCertDownload branch from f991c10 to 08a9050 Compare March 3, 2026 05:05
@nchapagain001 nchapagain001 disabled auto-merge March 3, 2026 05:05
Nirjan Chapagain added 2 commits March 3, 2026 10:04
@nchapagain001 nchapagain001 enabled auto-merge (squash) March 4, 2026 16:27
"AccessTokenPath": "$.Parameters.LogFileName"
"AccessTokenPath": "$.Parameters.LogFileName",
"CertificateInstallationDir": "$.Parameters.CertificateInstallationDir",
"WithPrivateKey": "$.Parameters.WithPrivateKey"
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to make a distinction. We have no scenarios where downloading a public key certificate is required for customer scenarios. Just assume the private key download.

"CertificateName": "$.Parameters.CertificateName",
"AccessToken": "$.Parameters.AccessToken",
"AccessTokenPath": "$.Parameters.LogFileName"
"AccessTokenPath": "$.Parameters.LogFileName",
Copy link
Contributor

Choose a reason for hiding this comment

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

Naming: AccessTokenFilePath. It is longer but also more clear.

@@ -14,9 +16,10 @@
"KeyVaultUri": "$.Parameters.KeyVaultUri",
Copy link
Contributor

Choose a reason for hiding this comment

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

Note that I am doing some rework on the original implementation for Key Vault integration. It did not follow the patterns closely enough as we have for other types of stores (e.g. package, content, Event Hub). Because it didn't, it pushed wonky code choices/requirements downstream that are junking up the code.

We will need to converge together in the coming days to merge our changesets into something harmonious.

@@ -0,0 +1,39 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace VirtualClient.Identity
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we will need this class. This source code should just be located in the Component that is using it. If it is used in more than 1 Component, we should just use extension methods. The source code location/folder is fine. Maybe a CertificateManagerExtensions class.

@nchapagain001 nchapagain001 disabled auto-merge March 13, 2026 18:59
@nchapagain001 nchapagain001 marked this pull request as draft March 16, 2026 00:12
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.

3 participants