Skip to content

Commit 8b366f9

Browse files
authored
Fix mangled SAN when using AddCNinSAN
The previous code was converting the array to a sting then adding the CN to the front of a string.
1 parent ca8d8c4 commit 8b366f9

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)