rewind-renew: Correct user messages, replace 'renew' with 'rewind'

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-08-08 13:20:38 +01:00
parent 7b4d2fb23e
commit f3f984991a
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -2490,12 +2490,12 @@ Run easyrsa without commands for usage and command help."
# referenced cert must exist:
[ -f "$crt_in" ] || die "\
Unable to renew as no certificate was found. Certificate was expected
Unable to rewind as no certificate was found. Certificate was expected
at: $crt_in"
# Verify certificate
verify_file x509 "$crt_in" || die "\
Unable to renew as the input file is not a valid certificate. Unexpected
Unable to rewind as the input file is not a valid certificate. Unexpected
input in file: $crt_in"
# Verify request
@ -2525,7 +2525,7 @@ Unexpected input in file: $req_in"
# NEVER over-write a renewed cert, revoke it first
deny_msg="\
Cannot renew this certificate because a conflicting file exists.
Cannot rewind this certificate because a conflicting file exists.
*"
[ -e "$crt_out" ] && die "$deny_msg certificate: $crt_out"
[ -e "$key_out" ] && die "$deny_msg private key: $key_out"
@ -2580,7 +2580,7 @@ with the following subject:
Rewind is successful.
Common Name : $crt_cn
Serial number: $file_name_base
Serial number: $cert_serial
To revoke use: 'revoke-renewed $crt_cn'"
} # => rewind_renew()