fix: чтение SSLCertificateSHA1Hash через Registry API + версия 1.0.3
Усилена нормализация byte[]/Object[] из реестра; в логе версия модуля для проверки git pull; RestoreTls нормализует thumbprint. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -152,6 +152,16 @@ Assert-Test 'ConvertTo-RdpRepairThumbprintHex hex equals byte forms' {
|
||||
if ($fromHex -ne $fromBytes) { throw 'format mismatch' }
|
||||
}
|
||||
|
||||
Assert-Test 'ConvertTo-RdpRepairThumbprintHex from int Object[] (registry style)' {
|
||||
$arr = [object[]]@(20, 77, 141, 24, 197, 69, 45, 187, 141, 61, 233, 254, 108, 97, 230, 158, 36, 151, 225, 169)
|
||||
$hex = ConvertTo-RdpRepairThumbprintHex -HashValue $arr
|
||||
if ($hex -ne '144D8D18C5452DBB8D3DE9FE6C61E69E2497E1A9') { throw "got $hex" }
|
||||
}
|
||||
|
||||
Assert-Test 'RdpRepair module version set' {
|
||||
if ([string]::IsNullOrWhiteSpace($script:RdpRepairModuleVersion)) { throw 'missing version' }
|
||||
}
|
||||
|
||||
Assert-Test 'Export-RdpRepairDiagnosticReport writes file' {
|
||||
if (-not (Test-RdpRepairIsAdministrator)) {
|
||||
Write-Host ' (skip report write - not admin)' -ForegroundColor DarkYellow
|
||||
|
||||
Reference in New Issue
Block a user