From c4eeff9201e4a13af20a3f4b37bf8a7b96cedfec Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Sun, 22 Jan 2023 19:20:24 +0000 Subject: [PATCH] build-ca: Write 'unique_subject = no' to index.txt.attr file EasyRSA version 3.1x 'renew' command requires this attribute. Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 1eeeadf..746e1c1 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -1354,7 +1354,8 @@ Unable to create necessary PKI files (permissions?)" done printf "" > "$EASYRSA_PKI/index.txt" || \ die "$err_msg" - printf "" > "$EASYRSA_PKI/index.txt.attr" || \ + attrib='unique_subject = no' + printf '%s\n' "$attrib" > "$EASYRSA_PKI/index.txt.attr" || \ die "$err_msg" printf '%s\n' "01" > "$EASYRSA_PKI/serial" || \ die "$err_msg"