I found an answer that uses OpenSSL, but I’m on Windows, and I don’t have it easily to hand. Is there a way (e.g. using CERTUTIL or VBScript) to see the certificates in a .PFX file?
If I use “certutil -dump”, it asks for the password for the key. I don’t want the key, and the certificate’s supposed to be public.
In a PFX file, both the private key and the certificate are encrypted (using the same password). If you do not know the password, you won’t get the certificate. If you know it,
certutil -dumpshould suffice.