Template Requirements
According to Certified Pre-Owned, a suitable certificate template must meet these criteria:Enterprise CA Enrollment Rights
Enterprise CA Enrollment Rights
The enterprise CA grants enrollment rights to the user account. Otherwise, the account would be unable to request any certificates from the CA.
Template Enrollment Rights
Template Enrollment Rights
The certificate template grants enrollment rights to the user account. Otherwise, the account would be unable to request certificates based on the specific template.
Manager Approval Disabled
Manager Approval Disabled
The “manager approval” feature is disabled for the certificate template. Otherwise, a “CA Manager” would have to manually review and approve the certificate request.
Client Authentication EKU
Client Authentication EKU
The certificate template defines an Extended Key Usage (EKU) that enables client authentication:
Client Authentication(1.3.6.1.5.5.7.3.2)PKINIT Client Authentication(1.3.6.1.5.2.3.4)Smart Card Logon(1.3.6.1.4.1.311.20.2.2)Any Purpose(2.5.29.37.0)Subordinate CA(No EKUs)
Enumeration
We can search for certificate templates with these conditions using theenum-templates --filter-client-auth command from Certify.
request command from Certify.
asktgt command from Rubeus. We can also use the /getcredentials parameter to request a U2U service ticket and retrieve the password NT hash for the user account.