Skip to content

[docs] Document automatic HTTPS certificate generation for non-.NET AppHosts#1355

Merged
IEvangelist merged 4 commits into
release/13.5from
docs/aspire-17454-https-cert-non-dotnet-apphost-3a00c112466baba4
Jul 13, 2026
Merged

[docs] Document automatic HTTPS certificate generation for non-.NET AppHosts#1355
IEvangelist merged 4 commits into
release/13.5from
docs/aspire-17454-https-cert-non-dotnet-apphost-3a00c112466baba4

Conversation

@IEvangelist

Copy link
Copy Markdown
Member

Supersedes #1063.

This replacement targets
elease/13.5 because the original
elease/13.4 base branch no longer exists on microsoft/aspire.dev.

Documents changes from microsoft/aspire#17454 (@JamesNK).

Targeting release/13.4 based on the source PR milestone 13.4.

Why this PR is needed

PR microsoft/aspire#17454 fixes a failure for non-.NET AppHosts (such as TypeScript AppHosts) where the dashboard resource service defaults to HTTPS but no HTTPS development certificate exists. Unlike .NET projects, TypeScript AppHosts don't trigger the dotnet first-run experience that normally generates the dev cert.

The fix adds automatic HTTPS development certificate generation in the Aspire CLI when running a non-.NET AppHost in non-interactive mode, with an opt-out via ASPIRE_CLI_GENERATE_HTTPS_CERTIFICATE=false.

What was changed

Updated src/frontend/src/content/docs/app-host/certificate-configuration.mdx to document:

  • The automatic HTTPS certificate generation behavior for non-.NET AppHosts when running aspire run
  • The ASPIRE_CLI_GENERATE_HTTPS_CERTIFICATE environment variable opt-out with example commands for bash and PowerShell

Files modified

  • src/frontend/src/content/docs/app-host/certificate-configuration.mdx — updated existing page

Generated by PR Documentation Check for issue #17454 · ● 65.2M ·

…pHosts

Documents the new behavior introduced in microsoft/aspire#17454:
- When aspire run starts a non-.NET AppHost (e.g., TypeScript) in
  non-interactive mode and no HTTPS dev certificate exists, the CLI
  now automatically generates one.
- The ASPIRE_CLI_GENERATE_HTTPS_CERTIFICATE environment variable can
  be set to 'false' to opt out of automatic certificate generation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 12, 2026 05:59
@IEvangelist IEvangelist added the docs-from-code Copilot initiated issue from dotnet/aspire repo label Jul 12, 2026
@IEvangelist IEvangelist requested review from JamesNK and removed request for Copilot July 12, 2026 05:59
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #1355. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #1355 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

Comment thread src/frontend/src/content/docs/app-host/certificate-configuration.mdx Outdated
Copilot AI review requested due to automatic review settings July 13, 2026 12:46
@IEvangelist IEvangelist enabled auto-merge (squash) July 13, 2026 12:46

Copilot AI left a comment

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.

Pull request overview

This PR updates the AppHost certificate configuration documentation to cover the Aspire CLI behavior that automatically generates an HTTPS development certificate for non-.NET AppHosts in non-interactive scenarios (with an opt-out environment variable).

Changes:

  • Documented automatic HTTPS dev-certificate generation when running non-.NET AppHosts in non-interactive mode.
  • Documented the ASPIRE_CLI_GENERATE_HTTPS_CERTIFICATE=false opt-out with bash and PowerShell examples.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/frontend/src/content/docs/app-host/certificate-configuration.mdx Outdated
Address PR review feedback:

- Use 'non-.NET' instead of 'non-C#' to match the source change (microsoft/aspire#17454) and cover TypeScript, Python, etc.

- Reconcile the conflict with the preceding 'created and trusted' statement: in non-interactive sessions on macOS/Windows the CLI only generates the certificate (no trust), while interactive sessions and Linux create and trust it.

- Convert the bash/PowerShell opt-out example to the OsAwareTabs component per doc-writer conventions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 287d927d-93f3-4966-8306-21ca3bd9c977
Switch the AppHost framing from non-.NET to non-C# (and .NET AppHosts to C# AppHosts) to match the site's C#/TypeScript AppHost parity convention.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 287d927d-93f3-4966-8306-21ca3bd9c977
@IEvangelist IEvangelist merged commit fc1d295 into release/13.5 Jul 13, 2026
9 checks passed
@IEvangelist IEvangelist deleted the docs/aspire-17454-https-cert-non-dotnet-apphost-3a00c112466baba4 branch July 13, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-from-code Copilot initiated issue from dotnet/aspire repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants