[Tool] Delete export pfx function to remove use of hard coded password (#39144)

don't need export pfx functionality
This commit is contained in:
Kai Tao
2025-04-29 18:31:21 +08:00
committed by GitHub
parent ad974bd679
commit 9cb99be4e9

View File

@@ -153,7 +153,3 @@ function Export-CertificateFiles {
Write-Warning "No output path specified. Nothing was exported." 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