node key-gen -o <output-pem-file>
Example
node key-gen -o 'keys/my-private-key.pem'
const pemFiles = ['keys/my-private-key.pem'];
const KeyStore = require('./key-store);
let ks = new KeyStore();
await ks.initiate(pemFiles);
// output jwk set
console.log(`${ks.getKeysetJson()}`);