Compare commits

...

1 Commits

Author SHA1 Message Date
vanzue
65f1130cfa don't need export pfx functionality 2025-04-29 13:39:11 +08:00

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
}