Skip to content

dotnet dev-certs https --trust failing in on GitHub Actions ubuntu-latest runner in SDK Version 10.0.103 #65391

@caleblloyd

Description

@caleblloyd

The command dotnet dev-certs https --trust is failing on GitHub Actions ubuntu-latest runners starting with SDK Version 10.0.103

Sample Job:

jobs:
  test:
    name: Tests
    runs-on: ubuntu-latest
    env:
      DOTNET_CLI_TELEMETRY_OPTOUT: 1
      DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
    steps:
      - name: Setup dotnet
        uses: actions/setup-dotnet@v5
        with:
          dotnet-version: 10.0.103

      - name: Setup dev certs
        run: dotnet dev-certs https --trust

Failure from 10.0.103:

Run dotnet dev-certs https --trust
[0] ERROR: Exception in Command Processing for EventSource Dotnet-dev-certs: Event WslWindowsTrustSucceeded was assigned event ID 115 but 113 was passed to WriteEvent.
Trusting the HTTPS development certificate was requested. Trust is per-user and may require additional configuration. See https://aka.ms/dev-certs-trust for more information.
There was an error trusting the HTTPS developer certificate. It will be trusted by some clients but not by others.
Error: Process completed with exit code 4.

What I expect (works in 10.0.102):

Run dotnet dev-certs https --trust
Trusting the HTTPS development certificate was requested. Trust is per-user and may require additional configuration. See https://aka.ms/dev-certs-trust for more information.
Successfully trusted the existing HTTPS certificate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-commandlinetoolsIncludes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPIfeature-devcerts

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions