Hello there, Recently I tried to register my devi...
# fleet
r
Hello there, Recently I tried to register my device (using localhost URL --> 'fleetctl package --type=pkg --fleet-desktop --fleet-url=http://localhost:8080 --enroll-secret=XXX) but it appears the following: (The secret it's auto-generated when you click 'Add hosts')
z
@Grant Bilstad Can you assist Rubén when you're online today?
g
Greetings @Rubén Rodríguez García, A few questions to get started- • What version of fleet server are you running and what would it be hosted on? Guessing you have the fleet server running locally with Docker? • If you go under Hosts page, does it have your device there? Error could be fluke • When are you getting this error? After you have installed the generated pkg from fleetctl?
r
Hi Grant, • Here my version and all the info (right now the error doesn't appear but I still don't understand why my device appears as "Offline"), also like you will se on the photo for 'fleet-desktop' it's seems all okay and connected:
g
Awesome, thanks much @Rubén Rodríguez García, could you try a simple live query to the host, a
SELECT * FROM osquery_info;
and see if returns anything?
Also, would you be using self-signed certificate?
r
Hi Grant, Nop, the query doesn't returns anything (attached file). And referent to the second question, nop, I'm not using any certificate. The certificate it's necessary to register my own device?
Adding the following flag (--insecure) I have managed to connect it: (⎈|docker-desktop:fleet) ruben_r@Rubens-Air  ~/fleet  fleetctl package --type=pkg --fleet-desktop --fleet-url=http://localhost:8080 --enroll-secret=XXXX --insecure
g
Thanks for posting what ended up working for you @Rubén Rodríguez García! Recommend getting certificates working for actual production, but the
--insecure
is alright for testing.
r
Yes, at the moment it's only testing. Thanks btw Grant, it's a pleasure.
If you don't mind asking you something else Grant... I'm looking for a table that allows me to know the "age" of my password (how long I've had my password set without changing it basically)... it's possible to have a query that gives this?
g
@Rubén Rodríguez García Would the account_policy_data table have the info you need? This is only available on macOS hosts though.
r
Awesome! Thanks Grant, it works for me, thats what I want hehe I'll be working and looking for more stuffs! Thanks and cheers 🙂