Sunday, May 7, 2017

Exporting Windows certificates as PFX files

The Certificates snap-in for MMC sometimes doesn't allow a certificate to be exported as a PFX. In that case, the exporting has to be done with PowerShell.

Navigate into the appropriate store under the cert:\ drive. Then use the Export-PfxCertificate cmdlet, supplying the certificate object's path in -Cert, the output filename in -FilePath, and the desired PFX file password as a secure string in -Password.

No comments:

Post a Comment