Linux Enrollment Guide
A guide for enrolling Linux devices with automatically renewing certificates
Last updated
A guide for enrolling Linux devices with automatically renewing certificates
Last updated
Applicable to SCEPman version 2.9 and above
Create a group of users who will be using the Linux devices and assign this group with the Self Service role so that they can enroll certificates to their own device using the Enrollment REST API.
Use the bash script described in the page below to enroll a certificate on the Linux machine. This script can either be deployed using Intune (for compatible Linux OSes, a guide for enrollment can be found here. A guide for configuring the scripts can be found here. Note that you will have to hardcode the command line arguments to get this to work). Of course, the script can also be run manually. Certificates can also be installed manually using Certificate Master
When the above bash script is run and detects that a certificate has already been enrolled, it will renew the certificate (if it is close to expiry) using mTLS. If the script is run regularly, this will ensure the certificate is renewed when it gets close to expiry. You can set up a cronjob to achieve this. The below command is an example of how this could be done. It will set up a cronjob to run the command daily (if the system is powered on) and a cronjob to run the command on reboot.
Since commands run by Cron will not necessarily be run from the directory that the script/certificates are in, it is important to provide the absolute paths to the script/certificates.