Update 'csr.ps1'

This commit is contained in:
2020-08-12 13:19:38 -04:00
parent fd351cc697
commit 45e807d0a7

View File

@@ -1,6 +1,7 @@
param(
$rsa,
$domain,
$hostnames
)
@@ -16,7 +17,13 @@ if ($hostnames -eq $null) {
$hostnames = read-host "Please enter Hostnames, no domain, to generate CSRs for"
}
$domain = "home.johnhgaunt.com"
if ($domain -eq $null) {
$domain = read-host "Please enter the domain (home|mgmt) to generate CSRs for [home]"
if ([string]::IsNullOrWhiteSpace($domain)){
$domain = "home"
}
$domain = "$domain.johnhgaunt.com"
}
foreach ($hostname in $hostnames) {