Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Import password protected PFX Cert into trusted root

$
0
0

Hello,

I have to import a PFX Cert to:

Cert:\LocalMachine\Root

This is my last try (and there were multible ones):

$tempdir = Get-Location
$tempdir = $tempdir.tostring()
$certfile = $tempdir +"\xyz.pfx"
$pwd = "12345"

Import-PfxCertificate -FilePath $certfile -Password $pwd -CertStoreLocation Cert:\LocalMachine\Root

Is there a way to perform an import with a plain text password? I have tried almost 50 different suggestions / solutions from web searches, but it seems to I do not get it...

regards

Susi



Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>