Layer7-Community / graphman-client

This repository contains a Postman collection, a Node.js CLI application, sample queries for the CLI, and GraphQL schemas for the Graphman API.
Other
7 stars 5 forks source link

Fix p12 explode/implode #26

Closed muemi03 closed 6 months ago

muemi03 commented 6 months ago

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