Event Store logo



Show Table of Contents

Setting up SSL on Windows

The steps to set up SSL on windows are as follows:

First, create a certificate using powershell, and copy the thumbprint from the output

New-SelfSignedCertificate -DnsName eventstore.org, localhost -CertStoreLocation cert:\CurrentUser\My

To trust the new certificate, the certificate has to be imported into the Trusted Root Certification Authorities:

  1. Press WindowsKey + R, and enter certmgr.msc
  2. Navigate to Certificates - Current User -> Personal -> Certificates
  3. Locate the certificate eventstore.org
  4. Right click on the certificate and click on All Tasks -> Export. Follow the prompts
  5. Navigate to Certificates - Current User -> Trusted Root Certification Authorities -> Certificates
  6. Right click on the Certificates folder menu item and click All Tasks -> Import. Follow the prompts

Start Event Store with the following configuration :

CertificateStoreLocation: CurrentUser
CertificateStoreName: My
CertificateThumbPrint: {Insert Thumb Print from Step 1}
CertificateSubjectName: CN=eventstore.org
ExtSecureTcpPort: 1115

Connect to Event Store using the Event Store .NET Client.

var settings = ConnectionSettings.Create().UseSslConnection("eventstore.org", true);

using (var conn = EventStoreConnection.Create(settings, new IPEndPoint(IPAddress.Loopback, 1115)))

Event Store docs are hosted on GitHub. The repository is public and it’s open to issues and pull requests. Contributions, corrections and feedback are all welcome.