Adding ssh private key to electron app

What is the best way to create, store and use ssh keys in an electron app.

I am creating an app using electron which needs to be able to make api calls to my accounting software to create and download invoices, to do this I need to give the public key to the acc software, how do I best go about managing this process.