Skip to content

Add details about trusting dev-cert #1087

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Loading