From 6837a1ac13f155bbb4d4b1957e7d57c033063853 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Sat, 6 Jan 2024 02:25:35 +0000 Subject: [PATCH] Create /issued during init-pki instead of build-ca The reason for this is to allow signed certificates to be imported, in order to create inline files for remote clients, who have sent a CSR to the CA and received a signed certificate from the CA. Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 8fd86a9fd..8f0e76a25 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -1374,7 +1374,7 @@ and initialize a fresh PKI here." fi # new dirs: - for i in private reqs inline; do + for i in issued private reqs inline; do mkdir -p "$EASYRSA_PKI/$i" || \ die "\ Failed to create PKI file structure (permissions?)" @@ -1557,7 +1557,7 @@ current CA. To start a new CA, run init-pki first." # create necessary dirs: err_msg="\ Unable to create necessary PKI files (permissions?)" - for i in issued certs_by_serial \ + for i in certs_by_serial \ revoked/certs_by_serial revoked/private_by_serial \ revoked/reqs_by_serial do