2019-04-10 08:23:38 +08:00
* Trust the HTTPS development certificate by running the following command:
2019-02-27 07:04:59 +08:00
2019-09-18 05:01:04 +08:00
```dotnetcli
2019-04-10 08:23:38 +08:00
dotnet dev-certs https --trust
```
2019-02-27 07:04:59 +08:00
2019-04-10 08:23:38 +08:00
* The preceding command displays the following output:
2019-02-27 07:04:59 +08:00
2019-04-10 08:23:38 +08:00
```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.
```
2019-02-27 07:04:59 +08:00
2019-04-10 08:23:38 +08:00
* Enter the admin username and password if prompted. The certificate will now be installed and trusted.
2019-02-27 07:04:59 +08:00
2019-04-10 08:23:38 +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.