Helps with preventing #571 again by removing the test pki that may
exist. The build script now removes it if present.
Update the python call the python3 so it works on macOS like in master.
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
Now supports both --version and "version and outputs detailed version
information. Tested on FreeBSD, macOS, and Windows 10 64-bit.
Sample Output:
EasyRSA Version Information
Version: git-development
Generated: Tue Apr 14 18:54:42 CDT 2020
SSL Lib: OpenSSL 1.1.1a-freebsd 20 Nov 2018
Git Commit: f0129cfe6222820a85db2d394ab73d3c7759c5be
Source Repo: https://github.com/OpenVPN/easy-rsa
This closes#372
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
New build script changes to handle win32/win64 openssl binaries.
There's more to do here with copying out the README files and such, but
this should be a good working start.
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
* Added --no-windows, --no-unix and no --no-compress to skip some
build steps.
* Use cp in a Linux and FreeBSD compatible way
* Set 'sed -i' backup extension (Linux and FreeBSD compatible)
(Linux regression from f0204c160b3cbdc041a91f2861febab24b7f5f76)
* Fix zip location to match tar (fixing also --bin-dest for win32)
* Align (y/n) with question in confirm
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
I somehow missed adding this change, even though the file was part of
the commit. git is hard.
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>
- 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>
* 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>
* Run the Windows specific files through unix2dos for easier consumption
* Modify the tar command options to better support "build" on FreeBSD
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
In the 3.0.0 release, Windows utilities were mistakenly omitted from the
package. The build utility has been updated to include these files, as
well as to convert the .md documentation files to html.
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
* Update ChangeLog to reflect minor last-minute commits.
* Modify build-dist.sh to create both zip and tgz files
* Add notable changes to Upgrade-Notes
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>