Configure iOS signing certificate

If no custom configuration exists, Relution automatically generates a self-signed signing certificate at server startup. The following steps are only necessary if the MDM profile is to be signed with a custom certificate, e.g. from a public certification authority.

Relution uses the signing certificate to sign the MDM profile delivered when enrolling Apple devices. If no custom certificate is configured, Relution generates a self-signed certificate at every server startup, with the host name of the External URL as Common Name and a validity of 30 years. It is only kept in memory and not stored permanently. As it is not issued by a trusted certification authority, the device does not display it as trusted. This is not a functional problem.

On the end device, the signing certificate can be found under Settings → General → VPN & Device Management → MDM Profile → Signing Certificate.


Adjust configuration

The certificate can be changed. In this case, the following section must be added to the application.yml:

relution:
  signer:
    certificatePath: "PATH TO YOUR CERTIFICATE"
    keyPath: "PATH TO YOUR KEY"

For the configuration via certificatePath and keyPath, both values must be set; otherwise Relution continues to use the automatically generated certificate. Certificate and key are provided in PEM format. The certificate file may contain the certificate chain; the private key must not be password-protected.

Relution resolves both paths relative to the Relution directory that also contains the application.yml (Docker/Linux: /opt/relution, Windows: installation directory, e.g. %ProgramFiles%\relution). A leading slash is ignored, so /opt/relution/server.pem would be looked up as /opt/relution/opt/relution/server.pem. If the files are stored directly in the Relution directory, the file name is sufficient, e.g. certificatePath: "server.pem" and keyPath: "server.key". An absolute path outside this directory is possible with the prefix file:, e.g. file:/etc/relution/signer.pem.

In this example, both the certificate and the corresponding key must be stored under the appropriate path.

The change only takes effect after the Relution server is restarted. If a path is wrong or a file cannot be read, the startup is aborted.

Devices that are already enrolled do not need to be re-enrolled: if the signing certificate in a device’s MDM profile is about to expire or has expired and the new certificate is valid for longer, Relution automatically triggers an update of the MDM profile.


Docker environment

If Relution is operated in Docker, the certificates must also be mounted in the corresponding container:

services:
  relution:
    volumes:
      - "./application.yml:/opt/relution/application.yml"
      - "./server.pem:/opt/relution/server.pem"
      - "./server.key:/opt/relution/server.key"

The volume application.yml only needs to be added if there is no such file already.

Alternatively, the private key and certificate can be passed as PEM text via the environment variable KEYSTORE_IOS_SIGNER_PEM. Additional volumes and the signer section in the application.yml are then not needed.

How helpful was this article?