[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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}