3 ms·
I realize this is not an overly serious project, but still.. To use this, you have to install node, and use that to run generate.js[1]... and what does generat
by josteink 6y ago
I realize this is not an overly serious project, but still..
To use this, you have to install node, and use that to run generate.js[1]... and what does generate.js do?
1. It generates an openssl.conf-file, which could have been checked into the repo as static content.
2. It runs a bash-script[2] which calls the openssl CLI-tool, with this config-file as a parameter.
I get it that we are programmers, but how many layers of indirection are we going to add to what could have been a simple README, and pre-supplied config-file?
Less is more. Not everything needs to be NodeJS.
[1] https://github.com/flotwig/the-one-cert/blob/master/generate.js https://github.com/flotwig/the-one-cert/blob/master/generate...
[2] https://github.com/flotwig/the-one-cert/blob/master/run-openssl.sh https://github.com/flotwig/the-one-cert/blob/master/run-open...
- vbezhenar 6y agoMay be I don't understand something, but this repository does have static openssl.conf and even generated key/certificate, so you absolutely don't have to install node. You need to install node, if you want to regenerate it with different parameters or something like that.
- cookiengineer 6y agoMaybe for inexperienced developers the whole point of this approach is that bash loops and string manipulations are inguessable (and by any means not similar to any real programming language)? I mean, after 20 years of UNIX, I don't even have a clue why expressions fail in bash sometimes ¯\_(ツ)_/¯
- dcminter 6y agoYou probably already know this tool, but it was new to me relatively recently: https://www.shellcheck.net/ https://www.shellcheck.net/
- cookiengineer 6y agoYep, shellcheck helps a lot while debugging shell scripts and quirks. (ALE has support for it, too, in case you use VIM)
- davedx 6y agoI’ve written a fair share of bash scripts over the years and because of that I prefer any other high level scripting language to do shell scripting. I use node a lot like this project but python or ruby are also good penknives for these kinds of tasks. Bash is esoteric, obscure and awful.
- pvtmert 6y agoi'd do makefile