renew() - Ensure CA index.txt.attr has 'unique_subject = no'

This is required to support renewal of a certificate.

Closes: #419

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-04-25 12:08:18 +01:00
parent 69819242db
commit 33a4914abb
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -1496,6 +1496,9 @@ Error: didn't find a file base name as the first argument.
Run easyrsa without commands for usage and command help." Run easyrsa without commands for usage and command help."
crt_in="$EASYRSA_PKI/issued/$1.crt" crt_in="$EASYRSA_PKI/issued/$1.crt"
# Upgrade CA index.txt.attr - unique_subject = no
up23_upgrade_ca || die "Failed to upgrade CA to support renewal."
# Append 'nopass' # Append 'nopass'
opt_nopass="" opt_nopass=""
if [ "$2" ]; then if [ "$2" ]; then