Closed wooti closed 1 month ago
Can you please try commit 14351d1
from the neil/certstorero
branch and let me know if that fixes the problem?
I don't have a development environment configured - is there a place I grab a binary for this change?
Yep, try this: https://binaries.nats.dev/binary/github.com/nats-io/nats-server/v2?os=windows&arch=amd64&version= 14351d1
It should spit out an .exe
file for that commit after a brief wait, but you might need to rename the file to pop the .exe
on the end.
Amazing, thank you. I can confirm it starts successfully now ☺
Thanks for confirming, have raised the PR!
Observed behavior
I am using a certificate from the Windows Certificate Store (see also) in my TLS configuration. The certificate is stored in the Windows Local Machine certificate store.
The server refuses to start, with the following error:
Expected behavior
The server should load the specified certificate from the Local Machine store, and start successfully.
Server and client version
nats-server: v2.10.22
Host environment
Windows 10, AMD64
Steps to reproduce
This problem goes away if I use the
WindowsCurrentUser
store, or if I runnats-server.exe
in admin mode. Unfortunately corporate policy does not allow either of these workarounds.Note: This does not seem to be a permissions issue, as there are other applications running in the same (non-administrative) context which can access the Local Machine certificate store. It seems to be an issue with the way NATS attempts access.