Note
macOS is not a recommended platform for hosting an MDM. However, you can use it to test commandment.
Install Homebrew.
Install Pre-requisites:
$ brew install python3
$ brew install uwsgi --with-python --with-python3
$ brew install nginx
TODO: upload release tarball. For now you will need to git clone Unpack commandment to /usr/local/commandment
.
Use this example NGiNX configuration (download
).
Copy the downloaded file to /usr/local/etc/nginx/servers/commandment.conf
.
Use this example uWSGI configuration (download
).
Copy the downloaded file to /usr/local/etc/uwsgi/apps-enabled/uwsgi-commandment.ini
.
MDM more or less requires an SSL certificate. The example NGiNX configuration file above expects a private key, located
at /usr/local/commandment/server.key
and a certificate, located at /usr/local/commandment/server.crt
.
For a production instance, you will require an SSL certificate issued by a 3rd party for the chosen domain. However, as this is a macOS installation guide, You may also use a self-signed certificate.
Note
Creating SSL certificates is outside of the scope of this document.
You need a push certificate to tell devices when to check-in.
You have three options:
This guide follows the mdmcert.download workflow.
/apns/mdmcert
using the web ui to request a new CSR.Note
At this stage you should have an MDM Push Certificate and SSL Certificate ready so that your devices will talk to the MDM service. You should also decide whether to use SCEPy for testing or another SCEP service such as Microsoft NDES.
An example configuration file, called settings.cfg.example
is supplied with commandment.
You should copy this file to a file named settings.cfg
and make updates as needed.
Each setting is documented within the file.