Windows Diverse CA Install

Aus Xinux Wiki
Version vom 21. Mai 2025, 12:59 Uhr von Thomas.will (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „=Powershell für Zertifikatimport= $CertPath = c:/temp/ca.crt $CertStore = Cert:\CurrentUser\kit Import-Certificate -FilePath $CertPath -CertStoreLocation $…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

Powershell für Zertifikatimport

$CertPath = c:/temp/ca.crt
$CertStore = Cert:\CurrentUser\kit
Import-Certificate -FilePath $CertPath -CertStoreLocation $CertStore


hier ein paar Varianten

Import-Certificate -FilePath $local_path -CertStoreLocation Cert:\LocalMachine\Root
certutil -p "**password**" -importpfx Root "**ca-File.p12**"
$mypwd = ConvertTo-SecureString -String "your_password" -AsPlainText -Force
Import-PfxCertificate -FilePath "C:\path\your\certificate.pfx" -CertStoreLocation Cert:\LocalMachine\My -Password $mypwd
CERTUTIL -addstore -enterprise -f -v root "%s"'%cmd
certutil -addstore -user -f "TrustedPublisher" $local_path
certutil -addstore -user -f "Root" $local_path
Import-Certificate -CertStoreLocation Cert:\CurrentUser\TrustedPublisher -FilePath $local_path
Import-Certificate -CertStoreLocation Cert:\CurrentUser\Root -FilePath $local_path