Skip to content
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

Not verifying on Windows #138

Open
senpro-ingwersenk opened this issue Sep 4, 2024 · 4 comments
Open

Not verifying on Windows #138

senpro-ingwersenk opened this issue Sep 4, 2024 · 4 comments
Labels
O-Windows Work related to the Windows verifier implementation

Comments

@senpro-ingwersenk
Copy link

Hello there!

I am trying to use Narrowlink and it uses the native verifier to allow users to use custom CAs - which in my case, I have to, as our firewall uses that for TLS/SSL traffic inspection.

However, whenever I try to connect to a server, I get the UnknownIssuer message back, which to me sounds like it couldn't verify the certificate against what Windows had stored.

The firewall CA is valid untill 2037 and is self-signed - hence why it needed to be added. cURL and friends can easily use that certificate, but this library can not? I must be missing something.

Any ideas? I tried to look for some way to debug that but had no success...

Kind regards!

@senpro-ingwersenk
Copy link
Author

After more digging, I found this: https://learn.microsoft.com/en-us/troubleshoot/windows-server/certificates-and-public-key-infrastructure-pki/valid-root-ca-certificates-untrusted

...and I followed some instructions I found for validating the certificate using certutil - which works, flawlessly so.

Since there are two stores (local user and system), which one does the verifier actually use?

@complexspaces
Copy link
Collaborator

Hi there, thanks for the issue report.

AFAIK the platform verifier uses the local user's store. We don't set any flags to configure it otherwise and CurrentUser seems to be the default based on the docs of CERT_CHAIN_ENGINE_CONFIG. Do you know which store your custom CA is currently installed in?

@complexspaces complexspaces added the O-Windows Work related to the Windows verifier implementation label Sep 5, 2024
@senpro-ingwersenk
Copy link
Author

It is installed in "This Maschine"; so I assume this is the system-wide store (think /etc/ssl/... but the Windows-thing). I will see if it works by purposely importing it into my local profile, if that is even possible with a root CA

@senpro-ingwersenk
Copy link
Author

Not exactly my finest idea but I imported it into neigh every "category" in the "This user" selection to see if any of those worked. Unfortunately, it did not. Sadly, due to Windows being Windows, I don't really have any other idea where to put it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-Windows Work related to the Windows verifier implementation
Projects
None yet
Development

No branches or pull requests

2 participants