Skip to content

Commit

Permalink
save changes
Browse files Browse the repository at this point in the history
  • Loading branch information
arudell committed Apr 18, 2024
1 parent 15d93e4 commit 46e8a52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/SdnDiag.Common/public/Get-SdnCertificate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ function Get-SdnCertificate {
[switch]$NetworkControllerOid
)

[string]$ObjectIdentifier = @('1.3.6.1.4.1.311.95.1.1.1') # this is a custom OID used for Network Controller
[string]$objectIdentifier = @('1.3.6.1.4.1.311.95.1.1.1') # this is a custom OID used for Network Controller
$array = @()

try {
$certificateList = Get-ChildItem -Path $Path | Where-Object {$_.PSISContainer -eq $false} -ErrorAction Ignore
if ($NetworkControllerOid) {
$certificateList | ForEach-Object {
if ($ObjectIdentifier -iin $_.EnhancedKeyUsageList.ObjectId) {
if ($objectIdentifier -iin $_.EnhancedKeyUsageList.ObjectId) {
$array += $_
}
}
Expand Down

0 comments on commit 46e8a52

Please sign in to comment.