- 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>
Offload temp file removal to a clean_temp() function

This simplifies code flow where temp files are used.

Signed-off-by: Josh Cepek <josh.cepek@usa.net>
docs: update Hacking.md with layout & git conventions

Updates include listing project dir layout, git conventions on
commits/merges/tags, and code spacing/indent recommendations.

Signed-off-by: Josh Cepek <josh.cepek@usa.net>
Add build-dist packaging script; update Building docs

This initial packaging script creates a release-ready tarball for
Unix-alikes. Windows support will be added in a separate commit.

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