The clean_temp() function failed to be called on a clean exit due to the
previous change (446a58f). Also adding in the bit from die() that I
failed to remember to push in.
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
* Use ~KEY~ pattern for replacement instead of ~~~, which doesn't scale.
* Include an empty string following -i for sed. This prevents the extra
files from showing up with -e.
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
Resolves#236 and #247
* Broaden trapped signals to SIGHUB, SIGINT, SIGQUIT, SIGABRT
* Turn echo back on upon exit.
* Provide a newline at exit just to make the terminal look pretty.
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
Only write out the default config to EASYRSA_PKI during init-pki
function call. Assume it's there or error out when appropriate.
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
- Resolve#57, set default certificate length to 1080 days, leaves CA
certifcates at 3650
- Add EasyRSA version to certificate comment for later troubleshooting
and identification.
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
Credit to @OtherSystems and @Antagonym and some others who pointed this out. This
resolves#189 and #193 and #186 and #179.
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
The EASYRSA_ALGO, EASYRSA_KEY_SIZE, and EASYRSA_CURVE settings in
`vars`, as well as their runtime overrides are ignored during `build-ca`
since 6268cd9. This restores previous behavior of honring the settings.
Should also fix#179.
I knew this was hanging out there, but Antagoynm found it before I was
able to resolve it. There was a message from shellcheck regarding this
one:
SC2059: Don't use variables in the printf format string. Use
printf "..%s.." "$foo".
Should resolve#181
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
Some Linux distros and BSD sh don't support the -s option to the read
builin. This is the POSIX way to handle secure input to a tty.
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
Attempts at making shellcheck happy and a little bit of sanity checking
for travis-ci. Going to try and get some basic easyrsa commands going
next, once I figure out what travis-ci's environment looks like.
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>