This is a potential fix for an explode / implode issue, when handling p12 keystore files.
Use Buffer oprerations instead of atob and btoa.
Setting appropriate encoding when writing and reading binary files.
The exploded p12 keystore file can be written by openssl.
The implode creates the same Base64 encoded string in the entity.p12 property of the JSON bundle
This is a potential fix for an explode / implode issue, when handling p12 keystore files. Use Buffer oprerations instead of atob and btoa. Setting appropriate encoding when writing and reading binary files. The exploded p12 keystore file can be written by openssl. The implode creates the same Base64 encoded string in the entity.p12 property of the JSON bundle