Skip to content

Commit

Permalink
Add details about trusting dev-cert (#1087)
Browse files Browse the repository at this point in the history
* Draft to fix #1068

* Be a bit more specific
  • Loading branch information
IEvangelist authored Jun 12, 2024
1 parent 2198c24 commit 1a43898
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/get-started/build-your-first-aspire-app.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Build your first .NET Aspire app
description: Learn how to build your first .NET Aspire app using the .NET Aspire Started Application template.
ms.date: 05/13/2024
ms.date: 06/12/2024
ms.topic: quickstart
zone_pivot_groups: dev-environment
---
Expand Down Expand Up @@ -52,6 +52,17 @@ The sample app is now ready for testing. You want to verify the following:

In Visual Studio, set the **AspireSample.AppHost** project as the startup project by right-clicking on the project in the **Solution Explorer** and selecting **Set as Startup Project**. Then, press <kbd>F5</kbd> to run the app.

:::zone-end
:::zone pivot="vscode,dotnet-cli"

If you haven't already trusted the ASP.NET Core localhost certificate, you will need to trust the certificate before running the app:

```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
:::zone pivot="vscode"

Expand Down
1 change: 1 addition & 0 deletions docs/troubleshooting/untrusted-localhost-certificate.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ For more troubleshooting, see [Troubleshoot certificate problems such as certifi
- [Trust the ASP.NET Core HTTPS development certificate on Windows and macOS](/aspnet/core/security/enforcing-ssl#trust-the-aspnet-core-https-development-certificate-on-windows-and-macos)
- [Trust HTTPS certificate on Linux](/aspnet/core/security/enforcing-ssl##trust-https-certificate-on-linux)
- [.NET CLI: dotnet dev-certs](/dotnet/core/tools/dotnet-dev-certs)
- [Trust localhost certificate on Linux](https://github.com/dotnet/aspnetcore/issues/32842)

0 comments on commit 1a43898

Please sign in to comment.