https://www.ask-sheldon.com/export-import-certificate/
Export or extract a certificate to or from PFX