DEV Community

Managing Windows PFX certificates through PowerShell

Adewale Azeez on January 17, 2020

The certificate is a container for the public key. It includes the public key, the server name, some extra information about the server, and a sign...
Collapse
 
eduardomozart profile image
Eduardo Mozart de Oliveira

When specifying the certificate password, you must convert the -Password switch with ConvertTo-SecureString cmdlet.
E.g. To install a PFX certificate to the current user's personal store, use the command below:
Import-PfxCertificate -FilePath ./TestPFXCert.pfx -CertStoreLocation Cert:\CurrentUser\My -Password (ConvertTo-SecureString -String 'testpassword' -AsPlainText -Force)

Collapse
 
kegsta profile image
Keighley Williams

great stuff here

Collapse
 
ekhanad profile image
ekhanad

Very Good Article!