💯 ECDSA tools. Key Generation. PEM-to-JWK. JWK-to-PEM. Lightweight. Zero Dependencies. Universal compatibility.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

14 lines
286 B

#!/usr/bin/env node
'use strict';
var fs = require('fs');
var eckles = require('../index.js');
var infile = process.argv[2];
//var outfile = process.argv[3];
var keypem = fs.readFileSync(infile, 'ascii');
eckles.import({ pem: keypem }).then(function (jwk) {
console.log(jwk);
});