Quantcast
Channel: Public Key Infrastructure PowerShell module
Viewing all articles
Browse latest Browse all 729

Commented Unassigned: Running convert-pfxtopem command identical to get-help -examples and failing to work [91]

$
0
0
Hello,

I downloaded then installed pspki module on my Powershell 4.0 then attempted to complete this command and got this result:

PS C:\> $pass = read-host "enter password for pfx file:" -assecurestring
enter password for pfx file:: ***********
PS C:\> convert-pfxtopem -inputpath c:\pki-certs\J140515A4081.pfx -password $pass -outputpath c:\pki-certs\new\J140515A4
081.pem
Convert-PfxToPem : A parameter cannot be found that matches parameter name 'inputpath'.
At line:1 char:18
+ convert-pfxtopem -inputpath c:\pki-certs\J140515A4081.pfx -password $pass -outpu ...
+ ~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Convert-PfxToPem], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Convert-PfxToPem


Please advise what commands I should use to convert a .pfx to a .pem.

Thanks!

Comments: Where exactly do I go to complete a feature request? The request I want in next version of PSPKI module is to be able to convert a DER file (.cer .crt .crt) certificate chain with private key to a .pem file Basically, I would rather use PowerShell pkpsi module for converting any & all certificate files than openSSL. If PKPSI can do all these that openSSL can do, then you will have something special indeed: • Convert a DER file (.crt .cer .der) to PEM openssl x509 -inform der -in certificate.cer -out certificate.pem • Convert a PEM file to DER openssl x509 -outform der -in certificate.pem -out certificate.der • Convert a PKCS#12 file (.pfx .p12) containing a private key and certificates to PEM openssl pkcs12 -in keyStore.pfx -out keyStore.pem -nodes * You can add -nocerts to only output the private key or add -nokeys to only output the certificates. • Convert a PEM certificate file and a private key to PKCS#12 (.pfx .p12) openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt

Viewing all articles
Browse latest Browse all 729

Trending Articles



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