Skip to content

Commit 2990d77

Browse files
authored
Fix Add CN to SAN
My previous fix had this as a subexpression but it should have been an array. This should actually fix the issue.
1 parent 8b366f9 commit 2990d77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Request-Certificate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ CertificateTemplate = "$TemplateName"
287287
}
288288

289289
if ($AddCNinSAN) {
290-
$SAN = $("DNS=$CN") + $SAN #Add CN as first SAN entry
290+
$SAN = @("DNS=$CN") + $SAN #Add CN as first SAN entry
291291
}
292292

293293
# Remove Potential duplicates (if CN was already provided in SAN list)

0 commit comments

Comments
 (0)