fleet/server/mdm
Victor Lyuboslavsky 25d9a2b043
Allow APNS key to be in unencrypted PKCS8 format (#24570)
#23760 

Manual QA done:
1. Get the current APNS key using tools/mdm/assets tool.
2. Convert it to a PKCS8 key like: `openssl pkcs8 -topk8 -inform PEM
-outform PEM -in mdm_assets/apns_key.key -out mdm_assets/apns_pkcs8.key
-nocrypt`
3. Delete all `apns` and `scep` rows from `mdm_config_assets` DB table.
4. Point to the PKCS8 key like:

```
export FLEET_MDM_APPLE_APNS_KEY=/Users/victor/work/fleet/mdm_assets/apns_pkcs8.key

export FLEET_MDM_APPLE_APNS_CERT=/Users/victor/work/fleet/mdm_assets/apns_cert.crt
export FLEET_MDM_APPLE_SCEP_CERT=/Users/victor/work/fleet/mdm_assets/ca_cert.crt
export FLEET_MDM_APPLE_SCEP_KEY=/Users/victor/work/fleet/mdm_assets/ca_key.key
export FLEET_MDM_APPLE_SCEP_CHALLENGE=$(cat /Users/victor/work/fleet/mdm_assets/scep_challenge)
```

This step may be tricky. Might be simpler to spin up a fresh Fleet
server with the SCEP/APNS values.

5. Start fleet server. Make sure APNS works by pushing/deleting a
profile.
6. Renew APNS cert and make sure the new cert still works.

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-12-09 16:23:22 -06:00
..
apple Allow APNS key to be in unencrypted PKCS8 format (#24570) 2024-12-09 16:23:22 -06:00
assets NDES SCEP proxy backend (#22542) 2024-10-09 13:47:27 -05:00
crypto Update nanomdm dependency with latest bug fixes and improvements. (#23906) 2024-11-20 11:47:11 -06:00
internal/commonmdm friday tidy up party (#18106) 2024-04-08 08:42:42 -03:00
lifecycle Proposal fix/plan for 24024 (#24207) 2024-11-27 12:11:08 -05:00
maintainedapps fix: add back queries removed during merge with main 2024-12-03 16:11:08 -05:00
microsoft Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
nanodep Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
nanomdm Improvements for select next Apple MDM command query. (#24128) 2024-12-05 12:02:48 -06:00
scep Added better handling of timeout and insufficient permissions errors in NDES SCEP proxy. (#23654) 2024-11-11 14:57:28 -06:00
mdm.go Add LUKS escrow trigger and orbit config endpoints, persist/retrieve LUKS passphrase (#23763) 2024-11-18 16:44:25 -06:00
mdm_test.go add missing activity items, fix CLI error messages 2024-03-29 14:43:28 -03:00