How To Convert .pfx file to Base64 String in Windows Terminal

You can easily convert PKCS#12 pfx files to Base64 strings using the new Windows Terminal.

Windows Terminal includes Powershell Core and the following commands enable you to create the Base64 string of your certificate archive binary.

$fileContentBytes = get-content ‘C:\Certificates\Client.pfx’ -AsByteStream

--

--

I’m a software development enthusiast who likes trying different web technologies and adding value to his team.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mert Ilis

I’m a software development enthusiast who likes trying different web technologies and adding value to his team.