Skip to main content

Certificate-based login with a device certificate

Certificate-based login replaces the username and password with a personal digital certificate. Instead of typing credentials, the server checks the certificate and grants access.

There are two ways to store the certificate:

MethodWhere the certificate livesPhysical card needed?
Device certificate (this article)On the Android device itselfNo
SmartcardOn a DESFire NFC cardYes

This article covers the device certificate variant.

How it works

  1. A personal certificate is installed on the Android device (in the system keystore)
  2. The user opens TheFlex and navigates to the protected website or SAP system
  3. The server requests a client certificate
  4. Android shows a dialog listing the available certificates on the device
  5. The user selects their certificate – or it is selected automatically if only one is available
  6. The user is logged in

![Certificate selection dialog]

Recommendation

If each device is used by a single, fixed user, the certificate can be pre-installed and the dialog is skipped automatically. Login happens completely without any user interaction.

Prerequisites

  • Certificate-based login must be enabled in the identity provider (SAP, Azure AD, or similar)
  • A personal certificate must be issued for each user
  • The certificate must be installed on the Android device – typically distributed via MDM

For details on certificates and how to set them up in SAP or Azure, see the Know-How section on certificates.

TheFlex setting

The certificate selection is enabled by default under Settings → Security → Enable certificate selection at login.

Note

This setting only takes effect when the Smartcard option is disabled. If smartcards are active, TheFlex reads the certificate from the NFC card instead of asking the device keystore.

Comparison: device certificate vs. smartcard

Device certificateSmartcard
Setup effortLow – MDM distributes the certificateHigh – NFC cards must be written and distributed
PortabilityCertificate stays on the deviceEmployee always has their card with them
Shared devicesLess suitable – one certificate per deviceIdeal – employee brings their own card
Personal devicesSuitableSuitable
SecurityCertificate protected by Android keystoreCertificate encrypted on the NFC card