Skip to content

Commit 5f8fffc

Browse files
author
Bob Pokorny
committed
testing
1 parent 0701ddb commit 5f8fffc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IISU/PowerShellScripts/WinCertScripts.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function Add-KFCertificateToStore{
215215
$securePassword = if ($PrivateKeyPassword) { ConvertTo-SecureString -String $PrivateKeyPassword -AsPlainText -Force } else { $null }
216216

217217
#
218-
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($bytes, $securePassword, [System.Security.Cryptography.X509Certificates.X509KeyStorageFlags]::EphemeralKeySet)
218+
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($bytes, $securePassword, 18)
219219
$thumbprint = $cert.Thumbprint
220220

221221
if (-not $thumbprint) { throw "Failed to get the certificate thumbprint. The PFX may be invalid or the password is incorrect." }

0 commit comments

Comments
 (0)