GoateePFE / ADCSTemplate

A PowerShell module for exporting, importing, removing, permissioning, publishing Active Directory Certificate Templates. It also includes a DSC resource for creating AD CS templates using these functions. This was built with the intent of using DSC for rapid lab builds. Could also work in production to move templates between AD CS environments.
MIT License
85 stars 23 forks source link

Certificate template assignment to enterprise CAs #2

Closed Crypt32 closed 6 years ago

Crypt32 commented 6 years ago

Your .psm1 file contains the following code that assigns imported/generated certificate template to all enterprise CAs in the forest. However, the relevant code part contains this line:

Set-ADObject -Identity $CA.DistinguishedName -Add @{certificateTemplates=$DisplayName} -Server $Server

Certificate templates are referenced by common name (CN attribute), not by DisplayName attribute.

GoateePFE commented 6 years ago

Fixed in 1.0.1.0. Also fixed in other functions within the module.