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>
* Remove SC2006 from shellcheck: bashism
* Put variable declarations on separate lines (SC1007)
* Remove "local" from Windows sh script (SC2039)
* Remove "x" variable define from read in Windows sh script (SC2034)
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
amkhiv was kind enough to point out I failed to fix the "local" syntax
removal from cmd_help(). tincantech has pointed this out and I intended
on fixing, but missed it.
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
Also, update the README to indicate master is development. People don't
seem to understand that.
Resolves#167
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
This is an alternative to the proposed patch in #154 and is easier to
read than the change.
Closes#154.
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
This clarifies the use of the file as specific to EasyRSA while also
closing the loop on the openssl version chase. No reason to have a
configuration file that is specific to openssl version at this point.
If the need arises, we'll do so in a sane fashion.
Resolves#159
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
Adding the --copy-ext option to copy request extension data. This will
resolve#60 and other Subject Alternative Name "issues" that have been
created.
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
The mv operation following the CRL creation isn't useful as there is no
temp file to move. Instead, create the temp file during CRL creation,
preventing a potential overwrite of a previous, valid, CRL.
Thanks go to matteo.guglielmi@epfl.ch for this patch (via email).
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>