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

Added option to publish template to one specific CA #19

Open balthasar-m opened 3 months ago

balthasar-m commented 3 months ago

Hey, we used your scripts for our ADCS honeypot project (https://github.com/srlabs/Certiception/) to setup a new template.

For that, we needed a parameter to only publish the template on one CA.

As a minimal change to enable that, we added a new parameter PublishOn where you can specify a CA name to publish the template on. The Publish parameter still works as before - publishing on all CAs.

While this is not exactly the behaviour requested in https://github.com/GoateePFE/ADCSTemplate/issues/8, I think it's a small change that enables something similar without breaking any past use cases due to Publish being unaffected.