Skip to content

implement mdmctl apply app -sign-identity#785

Merged
groob merged 4 commits intomicromdm:mainfrom
korylprince:multi-os-signing
Apr 14, 2022
Merged

implement mdmctl apply app -sign-identity#785
groob merged 4 commits intomicromdm:mainfrom
korylprince:multi-os-signing

Conversation

@korylprince
Copy link
Contributor

@korylprince korylprince commented Nov 12, 2021

This PR adds support for signing packages on other OSes (any OS that supports the xar command) using a .p12 identity file.

The following flags are added to mdmctl apply app:

  • -sign-identity - path to .p12 developer identity
  • -password - password for identity (can also be empty)
  • -out - output path for signed package. This isn't necessarily related to multi-OS support, but is very useful and solves package overwriting if the original pkg is in /tmp.

Help strings have been updated for the new flags.

I did not end up adding tests as they would have mainly just replicated the tests in go-macos-pkg. I did manually test basically every permutation of the new flags to verify functionality.

Note: if you're having weird issues trying to build, make sure you're on up to date Go. I hit this bug when pulling in go-macos-pkg.

@korylprince
Copy link
Contributor Author

Finally got the builders happy enough to build... That was a much longer journey than I anticipated.

@groob groob merged commit 5495df8 into micromdm:main Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants