Skip to content

Commit f67da14

Browse files
authored
Merge pull request #13 from jbpaux/fix-SANdisplay
fix display of SAN when provided as array
2 parents 60506bf + 294da21 commit f67da14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Request-Certificate.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,11 @@ CertificateTemplate = "$TemplateName"
244244
#if the array has ony one element then split it on the commas.
245245
if (($SAN).count -eq 1) {
246246
$SAN = @($SAN -split ',')
247-
248-
Write-Host "Requesting SAN certificate with subject $CN and SAN: $($SAN -join ',')" -ForegroundColor Green
249-
Write-Debug "Parameter values: CN = $CN, TemplateName = $TemplateName, CAName = $CAName, SAN = $($SAN -join ' ')"
250247
}
251248

249+
Write-Host "Requesting SAN certificate with subject $CN and SAN: $($SAN -join ',')" -ForegroundColor Green
250+
Write-Debug "Parameter values: CN = $CN, TemplateName = $TemplateName, CAName = $CAName, SAN = $($SAN -join ' ')"
251+
252252
Write-Verbose "A value for the SAN is specified. Requesting a SAN certificate."
253253
Write-Debug "Add Extension for SAN to the inf file..."
254254
$file +=

0 commit comments

Comments
 (0)