v1.2.2: bugfix explicit ec/ecdsa arg and newline output
This commit is contained in:
parent
4cccaa8786
commit
02a32b88e3
|
@ -74,7 +74,9 @@ args.forEach(function (arg) {
|
||||||
console.error("EC keys do not have bit lengths such as '" + opts.modulusLength + "'. Choose either the P-256 or P-384 'curve' instead.");
|
console.error("EC keys do not have bit lengths such as '" + opts.modulusLength + "'. Choose either the P-256 or P-384 'curve' instead.");
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ('rsa' === larg) {
|
if ('rsa' === larg) {
|
||||||
set('kty', "RSA");
|
set('kty', "RSA");
|
||||||
if (opts.namedCurve) {
|
if (opts.namedCurve) {
|
||||||
|
@ -532,7 +534,7 @@ function writeFile(name, key, priv) {
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
// the file does not exist (or cannot be accessed)
|
// the file does not exist (or cannot be accessed)
|
||||||
}
|
}
|
||||||
fs.writeFileSync(name, key);
|
fs.writeFileSync(name, key + "\n");
|
||||||
if (overwrite) {
|
if (overwrite) {
|
||||||
console.info("Overwrote " + (priv ? "private" : "public") + " key at '" + name + "'");
|
console.info("Overwrote " + (priv ? "private" : "public") + " key at '" + name + "'");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -0,0 +1,42 @@
|
||||||
|
{
|
||||||
|
"name": "keypairs-cli",
|
||||||
|
"version": "1.2.0",
|
||||||
|
"lockfileVersion": 1,
|
||||||
|
"requires": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@coolaj86/urequest": {
|
||||||
|
"version": "1.3.7",
|
||||||
|
"resolved": "https://registry.npmjs.org/@coolaj86/urequest/-/urequest-1.3.7.tgz",
|
||||||
|
"integrity": "sha512-PPrVYra9aWvZjSCKl/x1pJ9ZpXda1652oJrPBYy5rQumJJMkmTBN3ux+sK2xAUwVvv2wnewDlaQaHLxLwSHnIA=="
|
||||||
|
},
|
||||||
|
"eckles": {
|
||||||
|
"version": "1.4.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/eckles/-/eckles-1.4.1.tgz",
|
||||||
|
"integrity": "sha512-auWyk/k8oSkVHaD4RxkPadKsLUcIwKgr/h8F7UZEueFDBO7BsE4y+H6IMUDbfqKIFPg/9MxV6KcBdJCmVVcxSA=="
|
||||||
|
},
|
||||||
|
"keyfetch": {
|
||||||
|
"version": "1.1.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/keyfetch/-/keyfetch-1.1.5.tgz",
|
||||||
|
"integrity": "sha512-6ZXz6r0ejJq6nc125t+TZEgvCHxO0nbz5IqiJn6AOaNadzIp9icj+5ny2IoYhUmis2tTmTDHhPPMIXgQUptTpQ==",
|
||||||
|
"requires": {
|
||||||
|
"@coolaj86/urequest": "^1.3.6",
|
||||||
|
"eckles": "^1.4.0",
|
||||||
|
"rasha": "^1.2.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"keypairs": {
|
||||||
|
"version": "1.2.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/keypairs/-/keypairs-1.2.5.tgz",
|
||||||
|
"integrity": "sha512-VKUxQ4iQB5LvVMtObOzNmZRfgXLTr5GMr+wg9A2BnILArBLrtg/DIuWRJQpDNRRfAGRQjHXxSVOW+7xpzIAY1Q==",
|
||||||
|
"requires": {
|
||||||
|
"eckles": "^1.4.1",
|
||||||
|
"rasha": "^1.2.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rasha": {
|
||||||
|
"version": "1.2.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/rasha/-/rasha-1.2.4.tgz",
|
||||||
|
"integrity": "sha512-GsIwKv+hYSumJyK9wkTDaERLwvWaGYh1WuI7JMTBISfYt13TkKFU/HFzlY4n72p8VfXZRUYm0AqaYhkZVxOC3Q=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,11 +1,10 @@
|
||||||
{
|
{
|
||||||
"name": "keypairs-cli",
|
"name": "keypairs-cli",
|
||||||
"version": "1.2.1",
|
"version": "1.2.2",
|
||||||
"description": "CLI for Keypairs.js",
|
"description": "CLI for Keypairs.js",
|
||||||
"homepage": "https://git.coolaj86.com/coolaj86/keypairs-cli.js",
|
"homepage": "https://git.coolaj86.com/coolaj86/keypairs-cli.js",
|
||||||
"main": "bin/keypairs-cli.js",
|
"main": "bin/keypairs-cli.js",
|
||||||
"files": [
|
"files": [
|
||||||
"CLI.md",
|
|
||||||
"bin/keypairs.js"
|
"bin/keypairs.js"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in New Issue