Skip to content

Commit 71bc82c

Browse files
author
Uwe Gradenegger
committed
fix on returned Objects
1 parent 6df4845 commit 71bc82c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Get-SANExtension.ps1

+4-3
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,14 @@ process {
6262

6363
If (-not $SanExtension) {
6464

65-
$OutputObject = $CurrentRow
66-
67-
$OutputObject
65+
# directly return the Object
66+
$CurrentRow
6867

6968
}
7069
Else {
7170

71+
# Process the SANs and return these as well
72+
7273
# https://docs.microsoft.com/en-us/windows/win32/api/certenroll/nf-certenroll-ix509extensionalternativenames-initializedecode
7374
# https://docs.microsoft.com/en-us/windows/win32/api/certenroll/ne-certenroll-encodingtype
7475
$SanObjects = New-Object -ComObject X509Enrollment.CX509ExtensionAlternativeNames

0 commit comments

Comments
 (0)