-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server won't start when TLS configuration uses "WindowsLocalMachine" store #6018
Comments
Can you please try commit |
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 |
Amazing, thank you. I can confirm it starts successfully now ☺ |
Thanks for confirming, have raised the PR! |
This should allow access to `CERT_SYSTEM_STORE_LOCAL_MACHINE` from non-admin users. Fixes #6018. Signed-off-by: Neil Twigg <neil@nats.io>
This should allow access to `CERT_SYSTEM_STORE_LOCAL_MACHINE` from non-admin users. Fixes #6018. Signed-off-by: Neil Twigg <neil@nats.io>
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.
The text was updated successfully, but these errors were encountered: