Back to Aspnetcore

TrustCertVSC

aspnetcore/includes/trustCertVSC.md

latest796 B
Original Source
  • Trust the HTTPS development certificate by running the following command:

    dotnetcli
    dotnet dev-certs https --trust
    

    :::moniker range="<=aspnetcore-8.0"

    The preceding command requires .NET 9 or later SDK on Linux. For Linux on .NET 8.0.401 or earlier SDK, see your Linux distribution's documentation for trusting a certificate.

    :::moniker-end

    The preceding command displays the following dialog, provided the certificate was not previously trusted:

  • Select Yes if you agree to trust the development certificate.

    For more information, see the Trust the ASP.NET Core HTTPS development certificate section of the Enforcing SSL article.

[!INCLUDEtrust FF]