Skip to content

Commit

Permalink
Merge branch 'inline-v2' of ssh://github.com/TinCanTech/easy-rsa into…
Browse files Browse the repository at this point in the history
… TinCanTech-inline-v2

Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Aug 6, 2024
2 parents 7a372a4 + 2190110 commit 615ac14
Show file tree
Hide file tree
Showing 3 changed files with 155 additions and 190 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Easy-RSA 3 ChangeLog

3.2.1 (TBD)

* Switch to '-f' for file existence (6ab98c9..a02f545) (#1201)
* inline: Move auto-inline from build_full() to sign_req() (823f70f) (#1201)
* gen-crl: Create additional CRL in DER format (69df0d8) (#1198)
* self-sign: Allow Edwards Curve based keys (81b749b) (#1197)
* Re-enable command 'renew' (version 2): Requires EasyRSA Tools (30fe311) (#1195)
Expand Down
14 changes: 7 additions & 7 deletions dev/easyrsa-tools.lib
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ expire_status() {

# The certificate for CN should exist but may not
unset -v expire_status_cert_exists
if [ -e "$cert_issued" ]; then
if [ -f "$cert_issued" ]; then

verbose "expire_status: cert exists"
expire_status_cert_exists=1
Expand Down Expand Up @@ -829,13 +829,13 @@ renew_status() {
cert_file_in cert_is_issued cert_is_serial renew_is_old

# Find renewed/issued/CN
if [ -e "$cert_r_issued" ]; then
if [ -f "$cert_r_issued" ]; then
cert_file_in="$cert_r_issued"
cert_is_issued=1
fi

# Find renewed/cert_by_serial/SN
if [ -e "$cert_r_by_sno" ]; then
if [ -f "$cert_r_by_sno" ]; then
cert_file_in="$cert_r_by_sno"
cert_is_serial=1
renew_is_old=1
Expand Down Expand Up @@ -969,7 +969,7 @@ Missing certificate file:
fi

# Verify request
if [ -e "$req_in" ]; then
if [ -f "$req_in" ]; then
verify_file req "$req_in" || user_error "\
Input file is not a valid request:
* $req_in"
Expand Down Expand Up @@ -1010,7 +1010,7 @@ Missing request file:
deny_msg="\
Cannot renew this certificate, a conflicting file exists:
*"
[ -e "$crt_out" ] && \
[ -f "$crt_out" ] && \
user_error "$deny_msg certificate: $crt_out"
unset -v deny_msg

Expand Down Expand Up @@ -1179,14 +1179,14 @@ renew_move() {
done

# remove credentials file
if [ -e "$creds_in" ]; then
if [ -f "$creds_in" ]; then
rm "$creds_in" || warn "\
Failed to remove credentials file:
* $creds_in"
fi

# remove inline file
if [ -e "$inline_in" ]; then
if [ -f "$inline_in" ]; then
rm "$inline_in" || warn "\
Failed to remove inline file:
* $inline_in"
Expand Down
Loading

0 comments on commit 615ac14

Please sign in to comment.