You encounter an error message similar to the following in the Event Viewer on the Domain Controller:
"The Key Distribution Center (KDC) encountered a user certificate that was valid but could not be mapped to a user in a secure way..." (Event ID 39 under Kerberos-Key-Distribution-Center).
As detailed in Microsoft KB5014754, Windows domain controllers now enforce stronger validation for certificate-based authentication. This includes the requirement for strong certificate mappings using the onPremisesSecurityIdentifier attribute. If the certificate does not include this mapping, authentication fails with the above error.
To fix this issue, update the SCEP certificate template to include the required SID information in the Subject Alternative Name (SAN) field.
Uniform Resource Identifiertag:microsoft.com,2022-09-14:sid:%on_premises_security_identifier%
%on_premises_security_identifier% variable is correctly populated during certificate issuance.Applies to: SCEP Certificate Configuration, Certificate-Based Authentication, Wi-Fi Profile Installation
Keywords: KDC certificate mapping error, Event ID 39, Microsoft KB5014754, SCEP SID URI, onPremisesSecurityIdentifier, Certificate authentication failure, MDM SCEP Wi-Fi profile