Prerequisites

In Active Directory Certificate Services (AD CS), certificates can be issued and managed through certificate templates. Templates define the purpose, extensions, private key access, security, and many other features for issued certificates. By default, the code signing certificate template is not available in the template list:

Manage available templates through the CA console (certsrv). You will have to add the code signing template as it is not listed by default.

The Certificate Templates node in the certsrv console is simply a list of available templates. You can add and remove templates, but their properties are managed in the Certificate Templates snap-in of the Microsoft Management Console (mmc.exe).

Some of the properties of the Code Signing template might require configuration. For example, this type of certificate is set to expire yearly; private keys cannot be exported and the certificate can only be issued to a user (the certificate's subject is set to user). Instead of customizing the built-in template, it is usually preferable to create a new template using the Duplicate Template context option:

For our new template, we set the validity period to 5 years and allow you to export the private key. Feel free to explore these settings, but don't forget to add the certificate in certsrv so that it is available in your CA.

By default, only Domain and Enterprise Admins have access to issue certificates. For the following examples, we will give our scripting account Read and Enroll permissions for our template.

Certificate template updates may take several minutes to propagate across the domain. Run a gpupdate command on the machine submitting requests to make sure the local certificate template cache is up-to-date.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.26.108