Skip to content

Commit

Permalink
Merge branch 'TinCanTech-renew-key-notice'
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Aug 20, 2022
2 parents 62f203c + 7a04e50 commit c8e93ca
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -2076,16 +2076,12 @@ Run easyrsa without commands for usage and command help."
up23_upgrade_ca || die "Failed to upgrade CA to support renewal."

# Set 'nopass'
opt_nopass=""
if [ "$1" ]; then
opt_nopass="$1"
shift
fi

# Enforce syntax
if [ "$1" ]; then
die "Syntax error: $1"
fi
unset -v opt_nopass
case "$1" in
nopass) opt_nopass="$1"; shift ;;
'') : ;; # Empty ok
*) die "Unknown option: $1"
esac

# referenced cert must exist:
[ -f "$crt_in" ] || die "\
Expand Down Expand Up @@ -2177,7 +2173,9 @@ These files will be moved to the 'renewed' storage sub-directory:
These files will be DELETED:
* All PKCS files for commonName : $file_name_base
* The inline credentials file : $creds_in
* The duplicate certificate : $duplicate_crt_by_serial"
* The duplicate certificate : $duplicate_crt_by_serial

IMPORTANT: The new key will${opt_nopass+ NOT} be password protected."

confirm " Continue with renewal: " "yes" "\
Please confirm you wish to renew the certificate
Expand All @@ -2203,10 +2201,14 @@ Renewal has failed to build a new certificate/key pair."
fi

# Success messages
notice " * IMPORTANT *
notice "Renew was successful.

* IMPORTANT *

Renew has created a new certificate and key, both files MUST be replaced!

Renew was successful. To revoke the old certificate, once the new one has
been deployed, use 'revoke-renewed $file_name_base reason' ('reason' is optional)"
To revoke the old certificate, once the new one has been deployed,
use: 'revoke-renewed $file_name_base reason' ('reason' is optional)"

return 0
} # => renew()
Expand Down

0 comments on commit c8e93ca

Please sign in to comment.