Updated to make the server a parameter
This commit is contained in:
5
csr.ps1
5
csr.ps1
@@ -9,7 +9,8 @@ param(
|
|||||||
[string]$domain = "home.johnhgaunt.com",
|
[string]$domain = "home.johnhgaunt.com",
|
||||||
[System.IO.FileInfo]$Path = [Environment]::GetFolderPath("Desktop"),
|
[System.IO.FileInfo]$Path = [Environment]::GetFolderPath("Desktop"),
|
||||||
[ValidateSet("RSA2048", "RSA4096","ECC-256", "ECC-384")]
|
[ValidateSet("RSA2048", "RSA4096","ECC-256", "ECC-384")]
|
||||||
[string]$algorithm = "ECC-384"
|
[string]$algorithm = "ECC-384",
|
||||||
|
[string]$server = "gauntonlineca.home.johnhgaunt.com\GauntOnlineCA-CA"
|
||||||
)
|
)
|
||||||
|
|
||||||
begin {
|
begin {
|
||||||
@@ -89,7 +90,7 @@ DNS.2 = $hostname"
|
|||||||
-Wait
|
-Wait
|
||||||
|
|
||||||
Start-Process certreq.exe `
|
Start-Process certreq.exe `
|
||||||
-ArgumentList "-submit -config `"gauntonlineca.home.johnhgaunt.com\GauntOnlineCA-CA`" -attrib `"$certReqAttrib`" `"$csrFile`" `"$crtFile`"" `
|
-ArgumentList "-submit -config `"$server`" -attrib `"$certReqAttrib`" `"$csrFile`" `"$crtFile`"" `
|
||||||
-Wait
|
-Wait
|
||||||
|
|
||||||
# add the sub CA to the end of the cert
|
# add the sub CA to the end of the cert
|
||||||
|
|||||||
Reference in New Issue
Block a user