Title
#fleet
z

Zohaib Nasir

08/07/2022, 6:43 AM
Hi everyone, I am getting 'certificate verify failed' error while connecting osquery to fleetdm. i am using osquery version 5.4.0 and fleetdm version 4.18.0. when i use osquery version 3.3.0 it works fine. Any idea what could be the issue? W0807 06:38:45.080950 5115 tls_enroll.cpp:101] Failed enrollment request to https://IP:8080/api/osquery/enroll (Request error: certificate verify failed) retrying... W0807 06:38:49.117959 5115 tls_enroll.cpp:101] Failed enrollment request to https://IP:8080/api/osquery/enroll (Request error: certificate verify failed) retrying...
Guillaume

Guillaume

08/07/2022, 8:32 PM
Are you connecting via IP instead of hostname? If so, this is likely failing because the certificate only has the hostname in it
z

Zohaib Nasir

08/08/2022, 5:18 AM
But it works fine on osquery version 4.1.2.
Kathy Satterlee

Kathy Satterlee

08/08/2022, 2:38 PM
What version of Fleet were you using before the update to 4.18? Are you seeing any errors in the Fleet server logs?
z

Zohaib Nasir

08/08/2022, 2:40 PM
I am getting below error while connecting osquery to fleetdm server. W0807 06:38:45.080950 5115 tls_enroll.cpp:101] Failed enrollment request to https://IP:8080/api/osquery/enroll (Request error: certificate verify failed) retrying... W0807 06:38:49.117959 5115 tls_enroll.cpp:101] Failed enrollment request to https://IP:8080/api/osquery/enroll (Request error: certificate verify failed) retrying...
Kathy Satterlee

Kathy Satterlee

08/08/2022, 2:47 PM
It looks like those are the local osquery logs what are you seeing in the Fleet server? There may be some additional information there. I asked about the previous Fleet version as well because if you made a large jump there, it could explain why the certificate worked previously but isn't now.
o

Ojas

08/09/2022, 9:47 AM
Same err Failed enrollment request to https://fleet.abc.com/api/v1/osquery/enroll (Request error: certificate verify failed) retrying...
Kathy Satterlee

Kathy Satterlee

08/17/2022, 4:16 PM
Any updates @Zohaib Nasir? Were you able to check the Fleet server logs?
z

Zohaib Nasir

08/17/2022, 4:53 PM
@Kathy Satterlee issue not resolved, osquery 4.1.2 working fine. but versions above 4.1.2 gives certificate verify failed error.
Kathy Satterlee

Kathy Satterlee

08/17/2022, 4:57 PM
And were you able to check the Fleet server for any errors that might correspond with those requests?
z

Zohaib Nasir

08/17/2022, 5:00 PM
@Kathy Satterlee No, i didn't check fleet server logs.
Kathy Satterlee

Kathy Satterlee

08/17/2022, 5:03 PM
That would definitely be the next step here. Check the server logs to see if the requests are making it that far and see if there are any errors there with additional information.
o

Ojas

08/23/2022, 6:43 AM
@Kathy Satterlee regarding the same one, i have debuged the issue to the netskope. I have netskope runing and when it is turned on the certificate fails but if i switch it off it works fine and host is online on fleet. Tried to find a way around for it but stuck on this one. Can you guide me what to do?
7:58 AM
putting it a new thread to track properly