From 91a35c75394a5493df4a7f42f0cc487f50e8d8b1 Mon Sep 17 00:00:00 2001 From: David Pine Date: Mon, 21 Apr 2025 08:43:35 -0500 Subject: [PATCH 1/2] Update aspire-sdk-templates.md Add dev-cert details to templates content. --- docs/fundamentals/aspire-sdk-templates.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/fundamentals/aspire-sdk-templates.md b/docs/fundamentals/aspire-sdk-templates.md index fa747f5689..0fc9444110 100644 --- a/docs/fundamentals/aspire-sdk-templates.md +++ b/docs/fundamentals/aspire-sdk-templates.md @@ -109,6 +109,14 @@ dotnet new aspire-starter > dotnet new aspire-apphost --framework net8.0 > ``` +You need to trust the ASP.NET Core localhost certificate before running the app. Run the following command: + +```dotnetcli +dotnet dev-certs https --trust +``` + +For more information, see [Troubleshoot untrusted localhost certificate in .NET Aspire](../troubleshooting/untrusted-localhost-certificate.md). For in-depth details about troubleshooting localhost certificates on Linux, see [ASP.NET Core: GitHub repository issue #32842](https://github.com/dotnet/aspnetcore/issues/32842). + :::zone-end ## See also From cdffe26fc62acc264ff233a296c0616430d3a141 Mon Sep 17 00:00:00 2001 From: David Pine Date: Tue, 22 Apr 2025 08:53:05 -0500 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Andy (Steve) De George <67293991+adegeo@users.noreply.github.com> --- docs/fundamentals/aspire-sdk-templates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/fundamentals/aspire-sdk-templates.md b/docs/fundamentals/aspire-sdk-templates.md index 0fc9444110..cfebbaa0dd 100644 --- a/docs/fundamentals/aspire-sdk-templates.md +++ b/docs/fundamentals/aspire-sdk-templates.md @@ -109,7 +109,7 @@ dotnet new aspire-starter > dotnet new aspire-apphost --framework net8.0 > ``` -You need to trust the ASP.NET Core localhost certificate before running the app. Run the following command: +You need to trust the ASP.NET Core :::no-loc text="localhost"::: certificate before running the app. Run the following command: ```dotnetcli dotnet dev-certs https --trust