Skip to content

Convert-PfxToPem returns "Invalid provider type specified" when converting PFX to PEM. #154

@richardhicks

Description

@richardhicks

When using Convert-PfxToPem in PSPKI v3.7.2 I am receiving an error stating "Invalid provider type specified". Below is the exact command syntax and output.

$Pwd = ConvertTo-SecureString -String 'foobar' -AsPlainText -Force
Convert-PfxToPem -InputFile C:\foo.pfx -Password $pwd -OutputFile C:\foo.pem -OutputType Pkcs1 -Verbose

Invalid provider type specified
At C:\Program Files\WindowsPowerShell\Modules\pspki\3.7.2\Client\Convert-PfxToPem.ps1:141 char:3

  •     throw New-Object ComponentModel.Win32Exception ([Runtime.Inte ...
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (:) [], Win32Exception
    • FullyQualifiedErrorId : Invalid provider type specified

Metadata

Metadata

Assignees

No one assigned

    Labels

    ResearchRequires additional research or specification clarification

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions