AspNetCore.Docs/aspnetcore/includes/trustCertVSC.md

20 lines
922 B
Markdown
Raw Normal View History

---
no-loc: [Home, Privacy, Kestrel, appsettings.json, "ASP.NET Core Identity", cookie, Cookie, Blazor, "Blazor Server", "Blazor WebAssembly", "Identity", "Let's Encrypt", Razor, SignalR]
---
2019-04-15 19:18:09 +08:00
* Trust the HTTPS development certificate by running the following command:
```dotnetcli
2019-04-15 19:18:09 +08:00
dotnet dev-certs https --trust
```
The preceding command doesn't work on Linux. See your Linux distribution's documentation for trusting a certificate.
The preceding command displays the following dialog, provided the certificate was not previously trusted:
2019-04-15 19:18:09 +08:00
![Security warning dialog](~/getting-started/_static/cert.png)
2019-04-15 19:18:09 +08:00
* Select **Yes** if you agree to trust the development certificate.
2019-04-15 19:18:09 +08:00
See [Trust the ASP.NET Core HTTPS development certificate](xref:security/enforcing-ssl#trust-the-aspnet-core-https-development-certificate-on-windows-and-macos) for more information.
[!INCLUDE[trust FF](~/includes/trust-ff.md)]