From 33a4914abb981cf01e3e09146059a100101db495 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Mon, 25 Apr 2022 12:08:18 +0100 Subject: [PATCH] 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 --- easyrsa3/easyrsa | 3 +++ 1 file changed, 3 insertions(+) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 6682e7f..7c4a412 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -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." 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' opt_nopass="" if [ "$2" ]; then