Comments (20)
will fix.
thanks
from node-myca-cli.
will fix after refactor of relative modules.
thanks
from node-myca-cli.
Which version you used ?
myca --version
# should output 0.2.3
It goes on without problem under both win7 and centos7:
myca initcenter --name=ec --path="c:/users/<user>/.myca-ec"
from node-myca-cli.
Ubuntu 18.04.1 LTS x86_64
from node-myca-cli.
I mean which myca-cli version
myca --version
# should output 0.2.3
from node-myca-cli.
my output:
$ myca --version
0.2.3
from node-myca-cli.
pls try new myca-cli version v0.2.4:
npm i myca-cli@latest
// OR
npm i -g myca-cli@latest
from node-myca-cli.
still the same:
$ myca initca --name=ec
length of pass must at least 4
from node-myca-cli.
waiting distinguish
from node-myca-cli.
what do you mean?
from node-myca-cli.
I'll distinguish the issue. wait it.
from node-myca-cli.
try
npm i -g myca-cli@latest
then run:
myca --version
myca init -d
myca initcenter --name=ec --path="/tmp/myca-ec" -d
from node-myca-cli.
$ myca --version
2.0.0
$ myca init -d
{ cmd: 'init', options: null, needHelp: false, debug: true }
Default center created at path: "/home/dp/.myca"
$ myca initcenter --name=ec -d
/usr/lib/node_modules/myca-cli/dist/bin/myca-cli.js:234
throw new Error('value of path empty')
^
Error: value of path empty
at parseInitCenter (/usr/lib/node_modules/myca-cli/dist/bin/myca-cli.js:234:15)
at parseOpts (/usr/lib/node_modules/myca-cli/dist/bin/myca-cli.js:166:16)
at Object.<anonymous> (/usr/lib/node_modules/myca-cli/dist/bin/myca-cli.js:319:53)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
from node-myca-cli.
param of path missing!
myca initcenter --name=ec --path="/tmp/myca-ec" -d
from node-myca-cli.
$ myca initcenter --name=ec --path="/home/dp/.myca" -d
{ cmd: 'initcenter',
options: { name: 'ec', path: '/home/dp/.myca' },
needHelp: false,
debug: true }
{ name: 'ec', path: '/home/dp/.myca' }
{ name: 'ec', path: '/home/dp/.myca' }
center created with:
centerName: "ec"
path: "/home/dp/.myca"
But myca init
has already created this directory. Why do you force me to enter it manually? I'm okay with the default dir.
from node-myca-cli.
In most cases we need not initcenter, except for multiple CA file such as one RSA and other EC, So i must create an individual folder containnin all necessary folders and copy of configure files.
It must specify unique path for each named center during calling initcenter() hence .
from node-myca-cli.
@DarkPark try latest myca-cli , path of initcenter() can be ommited
myca initcenter --name=ec --path="/tmp/myca-ec" -d
// OR
myca initcenter --name=ecc -d
from node-myca-cli.
it works
$ myca initcenter --name=ec -d
{ cmd: 'initcenter',
options: { name: 'ec', path: undefined },
needHelp: false,
debug: true }
{ name: 'ec', path: undefined }
center created with:
centerName: "ec"
path: "/home/dp/.myca-1548162251558"
though I would prefer path: "/home/dp/.myca-ec"
from node-myca-cli.
npm i -g myca-cli@latest
myca initcenter --name=foo -d
path suffix from center name
from node-myca-cli.
👍
from node-myca-cli.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-myca-cli.