acme.js-ARCHIVED/tests/generate-cert-key.js

16 lines
285 B
JavaScript
Raw Normal View History

2019-10-08 21:13:13 +00:00
'use strict';
async function run() {
var Keypairs = require('@root/keypairs');
var certKeypair = await Keypairs.generate({ kty: 'RSA' });
console.log(certKeypair);
var pem = await Keypairs.export({
jwk: certKeypair.private,
encoding: 'pem'
});
console.log(pem);
}
run();