localhost with self-signed loads, but 127.0.0.1 does not

71 Views Asked by At

I am running eventstore-oss from WSL -- it has a self-signed certificate.

Chrome in Windows 11:

https://localhost:2113/web/index.html#/streams works fine (except chrome security warning for self-signed cert)

https://127.0.0.1:2113/web/index.html#/streams -- This site can’t be reached 127.0.0.1 unexpectedly closed the connection.

What sense does this make? I am binding to 127.0.0.1 in eventstore.conf not localhost ... Firefox gives the same behavior. ??


I created the cert with these 2 commands from this doc: https://developers.eventstore.com/server/v5/security.html#setting-up-ssl-on-linux

openssl req \
  -x509 -sha256 -nodes -days 365 -subj "/CN=eventstore.com" \
  -newkey rsa:2048 -keyout eventstore.pem -out eventstore.csr

openssl pkcs12 -export -inkey eventstore.pem \
  -in eventstore.csr -out eventstore.p12

I also see this behavior out-of-the-box on the windows.zip

run .\EventStore.ClusterNode.exe --dev

and you can hit it with https://localhost:2113 but not https://127.0.0.1:2113

Even though console says its bound to 127.0.0.1

[24584,15,11:39:34.858,INF] ========== ["127.0.0.1:2113"] SYSTEM INIT...
0

There are 0 best solutions below