Skip to content

Commit d9ee186

Browse files
tomatsueKenitoInc
authored andcommitted
Update Get-EntraUserCertificateUserIdsFromCertificate.ps1
It's not necessary to reverse the little-endian data.
1 parent 8055623 commit d9ee186

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

module/Entra/Microsoft.Entra/CertificateBasedAuthentication/Get-EntraUserCertificateUserIdsFromCertificate.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ function Get-EntraUserCertificateUserIdsFromCertificate {
6565
return ""
6666
}
6767

68-
[System.Array]::Reverse($littleEndianSerialNumber)
6968
$hexString = -join ($littleEndianSerialNumber | ForEach-Object { $_.ToString("x2") })
7069
return $hexString
7170
}
@@ -177,4 +176,4 @@ function Get-EntraUserCertificateUserIdsFromCertificate {
177176

178177
# Call main function
179178
return Main
180-
}
179+
}

0 commit comments

Comments
 (0)