Convert pfx certificate to base64 string using Powershell

To get Certificate data from PFX File Run below Script in powershell.

 

To Export it to a text file