From 9cb99be4e9548c48bad517ce7c075b6de3c1e11e Mon Sep 17 00:00:00 2001 From: Kai Tao <69313318+vanzue@users.noreply.github.com> Date: Tue, 29 Apr 2025 18:31:21 +0800 Subject: [PATCH] [Tool] Delete export pfx function to remove use of hard coded password (#39144) don't need export pfx functionality --- tools/build/cert-management.ps1 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tools/build/cert-management.ps1 b/tools/build/cert-management.ps1 index a085a5ca54..ed7031c1e9 100644 --- a/tools/build/cert-management.ps1 +++ b/tools/build/cert-management.ps1 @@ -152,8 +152,4 @@ function Export-CertificateFiles { if (-not $CerPath -and -not $PfxPath) { Write-Warning "No output path specified. Nothing was exported." } -} - -$cert = EnsureCertificate -$pswd = ConvertTo-SecureString -String "MySecurePassword123!" -AsPlainText -Force -Export-CertificateFiles -Certificate $cert -CerPath "$env:TEMP\cert.cer" -PfxPath "$env:TEMP\cert.pfx" -PfxPassword $pswd +} \ No newline at end of file