Ramblings on IT and Security

Month: October 2026

Creating AD CS Certificate Templates with PowerShell

Creating a certificate template usually starts with opening certtmpl.msc, duplicating an existing template and working through the tabs. Give it a name, select the cryptographic settings, configure the subject and permissions, and publish it on the issuing CA. For a single template, that works perfectly fine. When you need to repeat the same configuration across different environments, I prefer having those choices written down in a script.

After working on scripts for requesting certificates and exporting certificates and private keys, I wanted to take the next step, creating and configuring the certificate templates themselves.

Continue reading

Investigating CRL caching in Microsoft Edge

The feedback that started this investigation

Feedback on my earlier IIS caching article challenged an assumption I made: does a CRL’s own validity and publication fields ensure timely retrieval, regardless of HTTP caching? I built a lab to experiment with publication, download, storage and validation. Spoiler: My findings show that HTTP cache headers influence Edge’s CRL reuse, read more on how I got to this conclusion below.

Continue reading

Exporting Windows Certificates and Private Keys to PEM Using PowerShell

Sorry for the long title, this week by special request, I’m going to talk about a PowerShell script I created for someone. Working with Windows Certificate Services often means dealing with certificates stored in the Windows Certificate Store. However, not every application can consume certificates directly from that store. Some applications require separate PEM files containing the certificate and its private key.

Continue reading

Requesting Certificates with PowerShell

Another blog on certificates! While working on my Certificate Enrollment Services lab, I wanted a straightforward way to request a machine certificate without having to repeat the same manual steps each time. A domain-joined server should be able to use Active Directory enrollment policy, a workgroup machine should be able to use CEP and CES, and both should handle an application certificate with a supplied subject and one or more Subject Alternative Names. If a certificate manager needs to approve the request, I also want the script to wait, retrieve the certificate and install it when it becomes available.

Continue reading

© 2026 Michael Waterman

Theme by Anders Noren — Up ↑