Skip to content

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

Draft
Nirjan Chapagain (nchapagain001) wants to merge 22 commits into
mainfrom
users/nchapagain/EnableCertDownload
Draft

Nirjan Chapagain (nchapagain001) wants to merge 22 commits into
mainfrom
users/nchapagain/EnableCertDownload

Conversation

@nchapagain001

@nchapagain001 Nirjan Chapagain (nchapagain001) commented Mar 1, 2026

Copy link
Copy Markdown
Contributor

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

Removes ability to parse tenantId implicitly.

Comment thread website/docs/guides/0010-command-line.md Outdated
Nirjan Chapagain added 2 commits March 3, 2026 10:04
"AccessTokenPath": "$.Parameters.LogFileName"
"AccessTokenPath": "$.Parameters.LogFileName",
"CertificateInstallationDir": "$.Parameters.CertificateInstallationDir",
"WithPrivateKey": "$.Parameters.WithPrivateKey"

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

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