Forum Discussion
h3rb3rt
Dec 16, 2021Copper Contributor
PowerShell Export-PfxCertificate Problem
Hello Community, i have the following problem: When i export my root-Certificate as cer with PowerShell and with certmgr i get completly the same content in my files. BUT My child-pfx...
- Dec 17, 2021Hello, how are you?
How many certificates "Get-ChildItem -Path $systemcertpath" is outputting? it seems it is probably more than one certificate there, but you need only one, right?
I used this and I got the same certificate size both with mmc and Ps
Get-ChildItem -Path cert:\LocalMachine\my\327911063683D218873824A150B695F3875F8A38 | Export-PfxCert
ificate -NoProperties -ChainOption EndEntityCertOnly -Password $mypwd -FilePath C:\Users\Desktop\qaz321.pfx
Dec 17, 2021
Hello, how are you?
How many certificates "Get-ChildItem -Path $systemcertpath" is outputting? it seems it is probably more than one certificate there, but you need only one, right?
I used this and I got the same certificate size both with mmc and Ps
Get-ChildItem -Path cert:\LocalMachine\my\327911063683D218873824A150B695F3875F8A38 | Export-PfxCert
ificate -NoProperties -ChainOption EndEntityCertOnly -Password $mypwd -FilePath C:\Users\Desktop\qaz321.pfx
How many certificates "Get-ChildItem -Path $systemcertpath" is outputting? it seems it is probably more than one certificate there, but you need only one, right?
I used this and I got the same certificate size both with mmc and Ps
Get-ChildItem -Path cert:\LocalMachine\my\327911063683D218873824A150B695F3875F8A38 | Export-PfxCert
ificate -NoProperties -ChainOption EndEntityCertOnly -Password $mypwd -FilePath C:\Users\Desktop\qaz321.pfx
h3rb3rt
Dec 20, 2021Copper Contributor
Shame on me,
your are totally right. Its more than one Certificate there. And i referenced just to the cert-folder, not to the cert itself Small Fault, big effects. Now fixed -> File is much smaller. Its still not the same, but i will try if it will work.
Thank you so much for your eye-opening help!
your are totally right. Its more than one Certificate there. And i referenced just to the cert-folder, not to the cert itself Small Fault, big effects. Now fixed -> File is much smaller. Its still not the same, but i will try if it will work.
Thank you so much for your eye-opening help!
- Dec 20, 2021Glad to hear h3rb3rt!