Skip to content

Instantly share code, notes, and snippets.

# New-CertificateSigningRequest.ps1
# Written by Bill Stewart (bstewart AT iname.com)
# Windows provides the 'certreq -New' command to generate a certificate signing
# request (CSR) file, but the "policy" (.inf) file format it requires is arcane
# and cumbersome to format correctly. One of the the primary purposes of this
# script is to provode an easier-to-use INI file format that makes it simpler
# to specify the subject and subject alternative names (SANs) for the CSR
# without worrying about the formatting requirements of the .inf file.
#