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