Certificate
This configuration installs a CA certificate or a certificate with private key on the device.
The Certificate configuration distributes a certificate from the Relution certificate management, a certificate issued via a certificate template, or the user certificate of the assigned user to Android Enterprise devices. A policy can contain several certificate configurations.
The installation is carried out by the Relution Companion app, which Relution grants permission to install certificates (see Companion & Daemon →).
General
The General area defines which certificate is installed.
- User’s certificate for VPN and apps – instead of a fixed certificate, the certificate stored under VPN and apps in the profile of the user assigned to the device is installed.
- Certificate name – selects a specific certificate by name when the user has several certificates of this type. The field may contain placeholders resolved per device (see Advanced placeholders →). If left blank, the longest-lived certificate is used. A name that is entered must match the Name of the user certificate; if several certificates have this name, the longest-lived one is used as well. Whether upper and lower case are distinguished depends on the database of the Relution server: they are with PostgreSQL, but not with MariaDB.
- Selected certificate or template (preselected) – in the Certificate or certificate template field, Select opens the Select a certificate or a certificate template dialog. There, an uploaded certificate is available on the Certificates tab and a certificate template on the Certificate templates tab. Certificates in PKCS#1 and PKCS#12 format are offered. Without a selection, the configuration cannot be saved.
In the Select a certificate or a certificate template dialog, the Certificates tab shows Name, Type and Expires on for each certificate; the Search field filters the list by name. Expired certificates are marked with a warning icon but can still be selected. The Certificate templates tab shows the Name and Type of the templates. For a template, Relution issues a separate certificate for each device when the policy is transferred, or keeps using a certificate that has already been issued as long as it is not within the automatic renewal period.
Confirm applies the selection. The selected certificate or template appears as an entry below the field and can be removed via the cross on the entry.
For a PKCS#12 certificate, Relution transfers the password stored with the certificate to the Companion app together with the certificate. The configuration does not have a password field of its own.
Certificates in PKCS#1 format are installed as CA certificates, PKCS#12 containers as certificates with private key.
Background on the certificate sources:
Example: a separate certificate per device from the user profile
Users work with several company-owned devices. For each of these devices, the user’s profile contains a certificate under User Certificates with VPN and apps as Category whose Name matches the serial number of the device. Each device is to receive only its own certificate.
- User’s certificate for VPN and apps: selected
- Certificate name:
${device.serialnumber}
On each device, the Companion app installs the certificate of the assigned user whose name matches the serial number of that device. If there is no such certificate, the device receives no certificate from this configuration.
Certificate alias
The alias is generated automatically as soon as a certificate, a template or the option User’s certificate for VPN and apps is selected, and cannot be edited. The copy icon copies it to the clipboard.
The portal describes its purpose as follows: when a managed configuration requires a certificate alias, this value is used to refer to this configuration.
The alias starts with C. for a certificate, T. for a certificate template and U. for User’s certificate for VPN and apps. It is followed by a string derived from the internal identifier of the certificate, the template or the policy, e.g. C.U86EZXJxS66VPdELi5UCBA. When the selection changes, the portal generates a new alias; an alias already entered in a managed configuration then has to be replaced there as well. If the selection is removed via the cross on the entry, the field is cleared. In the configuration list of the policy, the alias is shown as the name of the configuration.
To keep the alias unique on the device, Relution passes it to the Companion app extended by the hexadecimal serial number of the certificate in parentheses. A renewed certificate, for example after the automatic renewal of a certificate issued from a template, therefore receives a new alias and is installed on the device as a new certificate.
Behavior when a user certificate is missing
If the user assigned to the device has no matching user certificate, Relution still transfers the other configurations of the policy. The certificate is then not installed, and a warning is written to the server log.
The same applies if no user is assigned to the device. Only a certificate with the category VPN and apps counts as matching and, if Certificate name is filled in, only one with this name. If the placeholders in Certificate name resolve to an empty value, no certificate is installed either. In these cases, Relution does not fall back to another certificate of the user.
If a certificate was selected under Selected certificate or template before switching to User’s certificate for VPN and apps and was not removed via the cross on the entry, it remains stored in the configuration and is installed instead in these cases. Such a certificate appears again as an entry below the field when switching to Selected certificate or template and can be removed there before switching back.