Search code examples
.net-corecertificatetls1.2eventstoredb

A TLS certificate is required in EventStore. What should I do?


I was following this tutorial and when I ran this command:

EventStore.ClusterNode.exe --db ./db --log ./logs

I got the exception shown here:

enter image description here

Since I am just playing with this software, I cannot contact their support. I would avoid for now setting to development mode.

I am not using Docker, just plain cmd in administrator mode on a Windows 10 (Home Edition) x64.

I never worked correctly with any certificates, and after googling I got stuck. What can I do to fix this? It is not a matter of programming, rather something of setting up.


Solution

  • You are trying to use EventStoreDB 20.6 using the previous release docs. The banner on the top of the page shows it:

    enter image description here

    I have to admit that new docs don't explain the certificate story well enough (or, like, almost not at all), but the C# gRPC client Quick Tour gives you some instructions for Docker. I'd say that even if you aren't using Docker, you'd be much better off if you do since it's what we will document first in details because Docker is what most developers use.

    Hence that the mentioned Quick Tour uses 20.6.1 nightly build, where we introduced the insecure mode and that's what the tutorial uses. The stable 20.6.1 release will be out in a week or two.

    The 20.6 release notes have quite a lot of information as well, including the TLS/SSL story.