Add ECDSA support

This commit adds the possibility to specify the algorithm used by openssl
by adding the --use-algo and --curve parameters.

Signed-off-by: Steffan Karger <steffan@karger.me>
Update to ECDSA support from commit 45c27e9

Add documentation & help output; add quoting; add error messages; put
the ecparams dir under PKI dir with env-var tunable.

Signed-off-by: Josh Cepek <josh.cepek@usa.net>
Update ChangeLog for ECDSA contribution; clean up formatting

Signed-off-by: Josh Cepek <josh.cepek@usa.net>
Add Hacking docs

Signed-off-by: Josh Cepek <josh.cepek@usa.net>
Add Building info

Signed-off-by: Josh Cepek <josh.cepek@usa.net>
Add release-keys

The GPG/PGP keys listed in this file are used to sign official releases
of Easy-RSA 3. The keys themselves can be downloaded from the many
public keyserver mirrors.

Signed-off-by: Josh Cepek <josh.cepek@usa.net>
Update version strings to prepare for release tag v3.0.0-rc1

Signed-off-by: Josh Cepek <josh.cepek@usa.net>
Windows: improve external checks and env-var help

Add test for `cat` external

Fix the env-var to read the correct EASYRSA_OPENSSL name

Signed-off-by: Josh Cepek <josh.cepek@usa.net>
Windows: make builds easier by using a matching dir structure

Now the entire distro/windows/ dir contents can be copied into a staging
dir during release prep.

Signed-off-by: Josh Cepek <josh.cepek@usa.net>
Support OpenSSL-0.9.8 with the EXTRA_EXTS feature

OpenSSL-0.9.8 cannot handle an empty extensions section. This change has
the dynamic extensions support place the section reference in the
temporary file at runtime, supporting both 0.9.8 and 1.0.* versions.

Signed-off-by: Josh Cepek <josh.cepek@usa.net>
- added option nokey for pkcs12 to avoid exporting private keys
- added command export-p7 to export certs using pkcs7 format.
- removed unecessary arg check in export_pkcs func
- Changed expanded tabs (spaces) to normal tabs
- fixed pkcs12 nokey message
- changed export dir for pkcs7 to issued
Modify error message from export_pkcs() to avoid console wrapping

Signed-off-by: Josh Cepek <josh.cepek@usa.net>
Merge PKCS#7 feature from pull req #14

This adds export support for PKCS#7 bundles, and adds the option to
export PKCS#12 without private keys

Author: Luiz Angelo Daros de Luca <luizluca@tre-sc.gov.br>
Signed-off-by: Josh Cepek <josh.cepek@usa.net>
refine how booleans are evaluated

Signed-Off-By: Josh Cepek <josh.cepek@usa.net>
Fix batch-mode handling with changes in e75ad75

The --batch CLI arg now takes no options and enables batch-mode when
present.

init-pki no longer takes a 'force' value which did the same as --batch.

Signed-off-by: Josh Cepek <josh.cepek@usa.net>
Fix incorrect handling of invalid --use-algo option

The prior warn/fallback to rsa didn't work, and fallback is probably the
wrong thing to do, especially for batch callers. It is now an error to
supply an invalid value.

No need to export the EASYRSA_ALGO_PARAMS either.

Signed-off-by: Josh Cepek <josh.cepek@usa.net>