fleet/tools/mdm/migration/micromdm/touchless
2024-10-18 12:38:26 -05:00
..
main.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
README.md tool to perform touchless MDM migrations (#18151) 2024-10-08 09:48:06 -03:00

MicroMDM touchless migration

This Go script reads information from a MicroMDM database and outputs:

  • SCEP, APNs and ADE certificates.
  • A file with MySQL statements to import the records into a Fleet database.

Usage

The only requirement is to have a compatible version of Go installed, and a MicroMDM database.

Here's an example of how a successful run looks like:

$ go run tools/mdm/migration/micromdm/touchless/main.go --db ~/projects/micromdm/micromdm.db

2024/09/11 10:05:53 Open DB for devices
2024/09/11 10:05:53 Found 1 devices
2024/09/11 10:05:53 Wrote device/enrollment records to dump.sql
2024/09/11 10:05:53 Open DB for SCEP cert and key
2024/09/11 10:05:53 Wrote SCEP cert/key to scep.cert/scep.key