From d0326c0d498e02c9f5bdc8a3ff479104264f4b6b Mon Sep 17 00:00:00 2001 From: Eric F Crist Date: Fri, 7 Sep 2018 09:41:39 -0500 Subject: [PATCH] Merge in other commits suitable for v3.0.5 from masteer. Signed-off-by: Eric F Crist --- build/build-dist.sh | 3 +++ easyrsa3/easyrsa | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/build/build-dist.sh b/build/build-dist.sh index 5bc91e5..70c13f0 100755 --- a/build/build-dist.sh +++ b/build/build-dist.sh @@ -78,6 +78,8 @@ stage_unix() { cp -R "$SRC_ROOT/doc" "$DIST_ROOT/unix/$PV/" || die "failed to copy unix doc" + sed -i -e "s/~~~/$VERSION/" "$DIST_ROOT/unix/$PV/easyrsa" + # files not included rm -rf "$DIST_ROOT/unix/$PV/doc/TODO" || die "failed rm TODO" } @@ -92,6 +94,7 @@ stage_win() { for f in $SRC_ROOT/doc/*.md; do fname=$(basename "$f" .md) + sed -i -e "s/~~~/$VERSION/" "$SRC_ROOT/$f" python -m markdown "$f" > "$DIST_ROOT/windows/$PV/doc/$fname.html" done diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index cede5b1..c78323f 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -2,7 +2,7 @@ # Easy-RSA 3 -- A Shell-based CA Utility # -# Copyright (C) 2013 by the Open-Source OpenVPN development community. +# Copyright (C) 2018 by the Open-Source OpenVPN development community. # A full list of contributors can be found in the ChangeLog. # # This code released under version 2 of the GNU GPL; see COPYING and the @@ -969,7 +969,7 @@ $file" If the key is currently encrypted you must supply the decryption passphrase. ${crypto:+You will then enter a new PEM passphrase for this key.$NL}" - "$EASYRSA_OPENSSL" "$key_type" -in "$file" -out "$file" "$crypto" || die "\ + "$EASYRSA_OPENSSL" "$key_type" -in "$file" -out "$file" $crypto || die "\ Failed to change the private key passphrase. See above for possible openssl error messages." @@ -1126,10 +1126,10 @@ Note: using Easy-RSA configuration from: $vars" set_var EASYRSA_CURVE secp384r1 set_var EASYRSA_EC_DIR "$EASYRSA_PKI/ecparams" set_var EASYRSA_CA_EXPIRE 3650 - set_var EASYRSA_CERT_EXPIRE 3650 + set_var EASYRSA_CERT_EXPIRE 1080 # new default of 36 months set_var EASYRSA_CRL_DAYS 180 set_var EASYRSA_NS_SUPPORT no - set_var EASYRSA_NS_COMMENT "Easy-RSA Generated Certificate" + set_var EASYRSA_NS_COMMENT "Easy-RSA (~~~) Generated Certificate" set_var EASYRSA_TEMP_CONF "$EASYRSA_PKI/openssl-easyrsa.temp" set_var EASYRSA_TEMP_EXT "$EASYRSA_PKI/extensions.temp" set_var EASYRSA_TEMP_FILE_2 ""