21 lines
936 B
Markdown
21 lines
936 B
Markdown
* Trust the HTTPS development certificate by running the following command:
|
|
|
|
```console
|
|
dotnet dev-certs https --trust
|
|
```
|
|
|
|
* The preceding command displays the following output:
|
|
|
|
```console
|
|
Trusting the HTTPS development certificate was requested. If the certificate
|
|
is not already trusted we will run the following command:
|
|
'sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain
|
|
<<certificate>>'
|
|
This command might prompt you for your password to install the certificate on the
|
|
system keychain.
|
|
The HTTPS developer certificate was generated successfully.
|
|
```
|
|
|
|
* Enter the admin username and password if prompted. The certificate will now be installed and trusted.
|
|
|
|
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. |