tinovyatkin / pass-js

Apple Wallet Passes generating library for Node.JS
MIT License
676 stars 81 forks source link

Automate certificate converstion from .cer to .pem #647

Closed ivangr1 closed 3 months ago

ivangr1 commented 3 months ago

Thanks for a great library!

I was just wondering is there any way to automate the very first step in the documentation which is converting the .cer file to .p12 and then to .pem? Can this be done on server in NodeJS?

I guess I could somehow use node-forge PKCS #12 conversion methods to convert .cer to .p12 but I am not sure which ones exactly, and then probably use some OpenSSL client for NodeJS to convert .p12 to .pem

Can you point me in the right direction?

Thank you!