fleetdm / fleet

Open-source platform for IT, security, and infrastructure teams. (Linux, macOS, Chrome, Windows, cloud, data center)
https://fleetdm.com
Other
2.69k stars 382 forks source link

`fleetctl generate mdm-apple-bm` command does not generate cert from CLI #19506

Open PezHub opened 1 month ago

PezHub commented 1 month ago

Fleet version: unreleased 4.51.0

macOS CLI


💥  Actual behavior

Error -

/fleetdm/fleet main ❯ ./build/fleetctl generate mdm-apple-bm                                                                   11:58:30 AM
requesting ABM public key: unknownError: Something's gone wrong. Please try again. If this keeps happening please file an issue:
https://github.com/fleetdm/fleet/issues/new/choose

🧑‍💻  Steps to reproduce

  1. Turn off Automatic Enrollments
  2. Make sure you don't have any existing ABM certs in your Database mdm_config_assets table
  3. Try to generate a new apple-bm-public-key.crt from CLI using the command fleetctl generate mdm-apple-bm

🕯️ More info (optional)

N/A

PezHub commented 1 month ago

QA Approved!

command now generates .crt and I was able to complete the workflow via ABM portal and the Fleet UI to successfully enable automatic enrollments.

/fleetdm/fleet main ❯ ./build/fleetctl generate mdm-apple-bm                                                                   02:06:15 PM
Success!

Generated your public key at fleet-apple-mdm-bm-public-key.crt

Go to https://pezhub.ngrok.app/settings/integrations/automatic-enrollment/apple and follow the steps.

Screenshot 2024-06-04 at 2 37 16 PM