You are developing a secure daemon service that runs on an on-premises Linux server. The service must authenticate with Microsoft Entra ID to retrieve secrets from an Azure Key Vault. Security policies prohibit the use of client secrets (passwords) for daemon services, requiring certificate-based authentication instead. You generate a self-signed certificate on the Linux server and register the application in Microsoft Entra ID under the name OnPremDaemon. Which configuration step must you perform in Microsoft Entra ID to enable the service to authenticate using this certificate?
- Upload the public key (.cer or .pem) of the certificate to the Certificates & secrets section of the OnPremDaemon app registration, which populates the keyCredentials property in the application object.Answer
- BUpload the private key (.pfx) of the certificate to the Certificates & secrets section of the OnPremDaemon app registration, which populates the passwordCredentials property in the application object.
- CEnable a system-assigned managed identity for the OnPremDaemon application registration and configure it to trust the certificate's thumbprint.
- DConfigure the certificate's public key within a custom Shared Access Signature (SAS) policy associated with the OnPremDaemon service principal.
Answer
Upload the public key (.cer or .pem) of the certificate to the Certificates & secrets section of the OnPremDaemon app registration, which populates the keyCredentials property in the application object.
To configure certificate-based authentication, the public key (.cer or .pem) of the certificate must be uploaded to the app registration. This action populates the keyCredentials array in the application object. When the daemon application authenticates, it signs a client assertion (JWT) using its private key and sends it to the token endpoint. Microsoft Entra ID uses the registered public key to verify the signature of the assertion.
Step-by-Step Solution
Key Concept
App Registrations and Service Principals credentials configuration using certificates