Template Requirements
According to Certified Pre-Owned, the following criteria comprise a suitable certificate template:Enterprise CA Enrollment Rights
Enterprise CA Enrollment Rights
The enterprise CA grants enrollment rights to the machine 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 machine 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. For more information about the command and its parameters, please refer to the Command Overview page.
request command from Certify.
Note the use of the
--machine parameter to request a certificate for the machine account rather than the current user account.asktgt command from Rubeus.