Request-Certificate

1.5.0

Requests a certificates with the specified subject name from am Windows CA and saves the resulting certificate with the private key in the local computer store.

You must specify at least the CN for the subject name.

With the SAN parameter you can also specify values for subject alternative name to request a SAN certificate.
The CA must support this type of certifica
Requests a certificates with the specified subject name from am Windows CA and saves the resulting certificate with the private key in the local computer store.

You must specify at least the CN for the subject name.

With the SAN parameter you can also specify values for subject alternative name to request a SAN certificate.
The CA must support this type of certificate otherwise the request will fail.

With the Export parameter it's also possible to export the requested certificate (with private key) directly to a .pfx file instead of storing it in the local computer store.

You can also use the Import-CSV cmdlet with Request-Certificate.ps1 to request multiple certificates.
To do this, use the Import-CSV cmdlet to create custom objects from a comma-separated value (CSV) file that contains a list of object properties (such as CN, SAN etc. ). Then pass these objects through the pipeline to Request-Certificate.ps1 to request the certificates.
   
Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Request-Certificate

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2020 Jonas Feller. All rights reserved.

Package Details

Author(s)

  • Jonas Feller c/o J0F3

Tags

Certificate ActiveDirectory ActiveDirectoryCertificateServices Security

Functions

Remove-ReqTempfiles Remove-ReqFromStore

PSEditions

Desktop

Dependencies

This script has no dependencies.

Release Notes

Kudos to jbpaux for contributing improvements and fixes on GitHub!
- New switch parameter "AddCNinSAN" to automatically populate SAN with the CN. (PR #15)
- Fixes an issue with naming ot the file when a wildcard (*) certificate is requested. (PR #14)
- Improved outputs when requesting SAN certificate. (PR #13)
- Fixes an issue where the request .inf file was not correctly formated when requesting a SAN certificate. (Kudos to smanross, PR #5)

FileList

Version History

Version Downloads Last updated
1.5.0 (current version) 3,938 9/15/2020
1.4.1 1,492 2/3/2019
1.3 423 6/22/2016
1.2 29 6/22/2016