From f9fa7dfd829eb35bd9a95ca94da1da2229c4f98a Mon Sep 17 00:00:00 2001 From: helmut Date: Thu, 16 Apr 2026 16:56:58 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D1=82=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- installSSL.ps1 | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 installSSL.ps1 diff --git a/installSSL.ps1 b/installSSL.ps1 deleted file mode 100644 index c17c960..0000000 --- a/installSSL.ps1 +++ /dev/null @@ -1,31 +0,0 @@ -# ========================================== -# 📥 ШАГ 1: Установка сертификата в систему -# ========================================== -# Путь к файлу PFX -$PfxPath = "C:\edo\Help-D_RDP.pfx" -$PfxPassword = "sj032ssa" - -Write-Host "⏳ Импорт сертификата..." -ForegroundColor Cyan - -try { - $SecurePass = ConvertTo-SecureString -String $PfxPassword -AsPlainText -Force - - # 1. Доверенные корневые центры (Доверие цепочке) - Import-PfxCertificate -FilePath $PfxPath -CertStoreLocation Cert:\LocalMachine\Root -Password $SecurePass | Out-Null - - # 2. Доверенные издатели (Убирает предупреждение "Неизвестный издатель") - Import-PfxCertificate -FilePath $PfxPath -CertStoreLocation Cert:\LocalMachine\TrustedPublisher -Password $SecurePass | Out-Null - - # 3. Личное хранилище (Доступ к приватному ключу для подписи) - $Cert = Import-PfxCertificate -FilePath $PfxPath -CertStoreLocation Cert:\LocalMachine\My -Password $SecurePass -Exportable - - $Thumb = $Cert.Thumbprint - - Write-Host "✅ Сертификат успешно установлен." -ForegroundColor Green - Write-Host "📋 Скопируйте этот отпечаток для Шага 2:" -ForegroundColor Yellow - Write-Host "------------------------------------------------" - Write-Host "$Thumb" -ForegroundColor White -BackgroundColor DarkBlue - Write-Host "------------------------------------------------" -} catch { - Write-Error "❌ Ошибка установки: $_" -} \ No newline at end of file