alitnk / monopay

💳 A node.js package for making payment transactions with different payment gateways
https://monopay.js.org
MIT License
114 stars 19 forks source link

`RSA-XML` to `pem` format conversion for Pasargad #24

Closed Keivan-sf closed 2 years ago

Keivan-sf commented 2 years ago

As mentioned in pull #20 , Pasargad provides its developers with a certificate.xml file containing their RSA private key. However, the Pasargad driver accepts the private key in pem format (Due to the crypto library only accepting pem) so developers are forced to convert it on their own. It would be nice to implement a conversion process to extract pem keys from RSA-XML. I will be working on it. Feel free to assign