-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
Windows Osquery Enrollment #87
Comments
It is probably an error on the server, in the zentral app, that is returned to the osquery client. The osquery client is expecting JSON, and cannot enroll. Look in the server logs, you will find the error. On a Zentral all in one instance:
On a docker deployment:
|
I see the following:
|
It seems the endpoint for the enrollment is the wrong one:
You should be able to fix it with this flag:
|
I have that flag in my flag file. |
It is odd in my flag file I have above enroll endpoint however in my verbose logging on the windows machine it says its request a node url enroll key from my-zentral-url.com/enroll instead of /osquery/enroll? |
Doh, figured it out. Had 2 enroll tls endpoint flags . |
Will try to get osqueryd to enroll, however having trouble running queries on it if I dont invoke osqueryd manually. |
please see the build in windows enrollment (powershell script) in latest code update. |
I am currently in the process of trying to enroll a Windows 11 (arm64) and while osquery is running and the zentral ps1 script is finishing, the machine does not show up in the zentral UI I added the hostname to the respective etc/hosts and can validate that the resolution works by opening the login page in the browser on the machine any pointers how to debug this? |
Attempting to enroll windows devices in Zentral. I used the Linux script as a basis. I create the tls.server.crt file based on this file and I also built a txt file with the enrollment secret in it. I then created the following osquery.flags file:
I then ran this to test enrollment:
C:\ProgramData\osquery\osqueryd\osqueryd.exe --flagfile C:\ProgramData\osquery\osquery.flags --verbose
and i get following:TLSEnrollPlugin requesting a node enroll key from: https://zentral-server.DOMAIN.com/enroll I0807 16:55:25.554425 6512 tls.cpp:240] TLS/HTTPS POST request to URI: https://zentral-server.DOMAIN.com/enroll W0807 16:55:26.101603 6512 tls_enroll.cpp:67] Failed enrollment request to https://zentral-server.DOMAIN.com/enroll (Cannot parse JSON: Invalid value. Offset: 0) retrying... I0807 16:55:28.179082 6512 tls.cpp:240] TLS/HTTPS POST request to URI: https://zentral-server.DOMAIN.com/enroll W0807 16:55:28.194224 6512 tls_enroll.cpp:67] Failed enrollment request to https://zentral-server.DOMAIN.com/enroll (Cannot parse JSON: Invalid value. Offset: 0) retrying...
Not sure if I am missing something or if this is something on the server i need to edit?
The text was updated successfully, but these errors were encountered: