Skip to content

.NET 6 preview 6.0.100-rc.1.21416.1 DevCerts Requiring Escalated Privileges With Every New WebApp #20124

@khalidabuhakmeh

Description

@khalidabuhakmeh

Running the SDK version 6.0.100-rc.1.21416.1 I notice that each ASP.NET Core application requires administrative escalation privileges.

I've run the following commands to try and fix it, but it continues even after wards.

> dotnet dev-certs https --clean
> dotnet dev-certs https
> dotnet dev-certs https --trust

Screenshot 2021-08-25 at 08 21 32

When I Deny the request to escalate permissions, I get these warnings.

warn: Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer[5]
      The ASP.NET Core developer certificate is in an invalid state. To fix this issue, run the following commands 'dotnet dev-certs https --clean' and 'dotnet dev-certs https' to remove all existing ASP.NET Core development certificates and create a new untrusted developer certificate. On macOS or Windows, use 'dotnet dev-certs https --trust' to trust the new certificate.
fail: Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer[4]
      The ASP.NET Core developer certificate is in an invalid state. To fix this issue, run the following commands 'dotnet dev-certs https --clean' and 'dotnet dev-certs https' to remove all existing ASP.NET Core development certificates and create a new untrusted developer certificate. On macOS or Windows, use 'dotnet dev-certs https --trust' to trust the new certificate.

The instructions are the same as what I've attempted previously.

Workaround

If I give the application access to the certs then it works, but I have to do this for every new web application.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions