diff --git a/csr.ps1 b/csr.ps1 index a6829a3..f81c0d8 100644 --- a/csr.ps1 +++ b/csr.ps1 @@ -9,7 +9,8 @@ param( [string]$domain = "home.johnhgaunt.com", [System.IO.FileInfo]$Path = [Environment]::GetFolderPath("Desktop"), [ValidateSet("RSA2048", "RSA4096","ECC-256", "ECC-384")] - [string]$algorithm = "ECC-384" + [string]$algorithm = "ECC-384", + [string]$server = "gauntonlineca.home.johnhgaunt.com\GauntOnlineCA-CA" ) begin { @@ -89,7 +90,7 @@ DNS.2 = $hostname" -Wait 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 # add the sub CA to the end of the cert