Request-Certificate

1.4.1

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.

Installation Options

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

Install-Script -Name Request-Certificate

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deloy 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

Author(s)

Jonas Feller c/o J0F3

Copyright

(c) 2019 Jonas Feller. All rights reserved.

Owners

Tags

Certificate ActiveDirectory ActiveDirectoryCertificateServices ADCS

Functions

Remove-ReqTempfiles Remove-ReqFromStore

Dependencies

This script has no dependencies.

Release Notes

1.4.1: Only changed line endings from LF to CRLF.
1.4: Thanks to David Allsopp c/o dra27 on GitHub for the contributions!
- Better default for CAName so it is not needed when only one CA is available.
- ProviderName specified in the request inf file

Version History

Version Downloads Last updated
1.4.1 (current version) 693 2/3/2019
1.3 410 6/22/2016
1.2 12 6/22/2016