Skip to content

[dotnet-sdk-10.0.100-preview.7.25351.101] EventStore app launch failed with error "Invalid Configuration: A certificate is required unless insecure mode (--insecure) is set" #117262

@Junjun-zhao

Description

@Junjun-zhao

Description

When running the 3rd party applications with dotnet-sdk-preview.7.25351.101, EventStore app launch failed with error "Invalid Configuration: A certificate is required unless insecure mode (--insecure) is set".

Reproduction Steps

App Repro steps on repro machine: (Please get the repro machine from devdiv bug)

The repro machine only has dotnet-sdk-10.0.100-preview.7.25351.101 installed and set DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX as 2.

  1. Update "C:\EventStoreApp\EventStore\KurrentDB.runtimeconfig.json" file to let the app run against with dotnet-sdk-10.0.100-preview.7.25351.101: "frameworks": [

    {
    "name": "Microsoft.NETCore.App",
    "version": "10.0.0-preview.7.25351.101"
    },
    {
    "name": "Microsoft.AspNetCore.App",
    "version": "10.0.0-preview.7.25351.101"
    }
    ],

  2. Open command prompt and navigate to C:\EventStoreApp\EventStore

  3. Input command “dotnet KurrentDB.dll --insecure --db ./tmp/data --index ./tmp/index --log ./tmp/log -runprojections all --startstandardprojections --EnableAtomPubOverHttp”.

  4. Press "Enter" to run the command.

Expected behavior

The command can run successfully without certificate related error and user can access the website through url:http://localhost:2113/web/index.html#/ from browser.

Image

Image

Actual behavior

The command run failed with certificate error and the app exit.
[14508, 2,08:05:32.978,INF] ClusterVNodeHostedService Cannot find plugins path: C:\EventStoreApp\EventStore\plugins
[14508, 2,08:05:32.991,INF] ClusterVNodeHostedService Using NetMD5 FileHashProvider.
[14508, 2,08:05:33.007,INF] AuthorizationPolicyRegistryFactory No authorization policy plugins found. Only ACLs will be used.
[14508, 2,08:05:34.525,FTL] KurrentDB Invalid Configuration: A certificate is required unless insecure mode (--insecure) is set.

Image

Image

Regression?

Yes

Verify Scenarios:

  1. Windows 11 24H2 x64 + dotnet-sdk-8.0.411: Pass
  2. Windows 11 24H2 x64 + dotnet-sdk-10.0.100-preview.6.25326.107: Pass
  3. Windows 11 24H2 x64 + dotnet-sdk-10.0.100-preview.7.25351.101: Fail

Known Workarounds

No response

Configuration

Application Name: EventStore
OS: Windows 11 24H2
CPU: X64
.NET Build Number: 10.0.100-preview.7.25351.101

Shared App & App Source Location checking at: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2521003

Other information

@dotnet-actwx-bot @dotnet/compat

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions