mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-11 12:14:53 +08:00
[Tool] Delete export pfx function to remove use of hard coded password (#39144)
don't need export pfx functionality
This commit is contained in:
parent
ad974bd679
commit
9cb99be4e9
@ -152,8 +152,4 @@ function Export-CertificateFiles {
|
|||||||
if (-not $CerPath -and -not $PfxPath) {
|
if (-not $CerPath -and -not $PfxPath) {
|
||||||
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
|
|
Loading…
Reference in New Issue
Block a user