Skip to content

Commit 857a4e7

Browse files
committed
renew: Print 'unique_subject = no' to index.txt.attr
Signed-off-by: Richard T Bonhomme <[email protected]>
1 parent 1d079db commit 857a4e7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

easyrsa3/easyrsa

+9-1
Original file line numberDiff line numberDiff line change
@@ -4690,7 +4690,15 @@ All PKCS files for commonName: $file_name_base
46904690

46914691
The inline credentials files:
46924692
* $inline_pub
4693-
* $inline_pri"
4693+
* $inline_pri
4694+
4695+
The CA attibutes file will be set to 'unique_subject = no'.
4696+
Required to create a new certificate with an existing name."
4697+
4698+
# Set 'unique_subject = no' in index.txt.attr
4699+
CA_attrib='unique_subject = no'
4700+
print "$CA_attrib" > "$EASYRSA_PKI"/index.txt.attr || \
4701+
die "Failed to update index.txt.attr"
46944702

46954703
# move renewed files
46964704
# so we can reissue certificate with the same name

0 commit comments

Comments
 (0)