Here is quick PowerShell script to read PFX certificate file
$mypwd = ConvertTo-SecureString -String "password"-Force -AsPlainText $mycert = get-pfxdata -filepath "mytest.pfx" -Password $mypwd $mycert.EndEntityCertificates | Select-Object -Property * # write to JSON #$myjson = ConvertTo-Json $mycert.EndEntityCertificates -Depth 100 #$myjson | Out-File -FilePath pfxoutput.json
Leave a comment