AspNetCore.Docs/aspnetcore/includes/trustCertMac.md

936 B

  • Trust the HTTPS development certificate by running the following command:

    dotnet dev-certs https --trust
    
  • The preceding command displays the following output:

    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 for more information.