https://github.com/osquery/osquery logo
#kolide
Title
# kolide
f

fbone

02/04/2020, 8:22 PM
Cannot seem to get my Windows client to enroll into Fleet, I can access the Fleet login GUI page from my windows box, so firewall should not be an issue. Yet every time I try to check enrollment, I receive Cannot Read TLS Server certificate
Here is the error
Here is my flags file
Also this is lab environment so security not really an issue can I add the enroll Secret directly into the osflags file instead of pointing it at the text file??
Disregard just noticed that the file patch in the flags file, has different directory then what is on disk, likely the issue.
j

jackjack

02/04/2020, 9:06 PM
What’s the cert you pinned on fleet server? I ran into the same thing resolved it by using the full chain of cert on client and server+ca cert on fleet
z

zwass

02/04/2020, 9:09 PM
@fbone You have two issues. One is that the enroll secret is empty and the other is that osquery can't read your TLS cert chain. Probably both are caused by incorrect paths and/or permissions.
f

fbone

02/04/2020, 9:10 PM
ok so the actual enroll secret should show up when it POST correct?
thats what i figured but was not sure
z

zwass

02/04/2020, 9:11 PM
Yes if you have
--tls_dump
on which it looks like you do then osquery will show what it is actually sending. If that is an empty string it means osquery is unable to read it.
Or that the file is actually empty.
f

fbone

02/04/2020, 9:11 PM
super odd ill post the file one se
very odd
j

jackjack

02/04/2020, 9:23 PM
Same thing here...
Copy code
tls_dump
doesn’t really tell us what secret is sending, just telling us it’s invalid enroll secret
s

seph

02/04/2020, 9:29 PM
I don’t know if it matters. but you’re initial screenshot was
osqueryi
.
3 Views