Skip to content
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

How to trust ASP.NET Core dev cert on Win/MacOS #6385

Closed
wants to merge 5 commits into from
Closed
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
14 changes: 12 additions & 2 deletions aspnetcore/security/enforcing-ssl.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,19 @@ dotnet new razor --no-https

------

::: moniker-end
<a name="cert"></a>
## Install and trust the ASP.NET Core HTTPS development certificate

Install the [.NET Core SDK](https://www.microsoft.com/net/download/all).

The first time you create an ASP.NET Core project using `dotnet new`, the ASP.NET Core HTTPS development certificate is installed, but not trusted. To trust the certificate on Windows or MacOS, run the following command:

```cli
dotnet dev-certs https --trust
```

To establish trust on other platforms, refer to the platform specific documentation. Uninstalling the the NET Core SDK does not revoke the certificates trust.

::: moniker range=">= aspnetcore-2.1"
## How to setup a developer certificate for Docker

See [this GitHub issue](https://github.com/aspnet/Docs/issues/6199).
Expand Down