From 2ee08cc8bdd00f0cd39bc533d5d3e11cda4dab08 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Sat, 12 Oct 2024 21:32:11 +0100 Subject: [PATCH 1/3] sign-req: Allow custom X509 Types In order to sign a custom X509 Type certificate, there must be a corresponding SSL configuration file in the 'x509-type' folder. Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index b504a375..20ab7d94 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -2390,7 +2390,11 @@ sign_req() { : # All known types plus CA for sub-ca ;; *) - user_error "Type is not recognised: '$crt_type'" + warn "\ +Unrecognised x509-type: '$crt_type' + +In order to sign a custom X509 Type certificate, there must be a +corresponding SSL configuration file in the 'x509-type' folder." esac # Check argument sanity: @@ -4866,6 +4870,7 @@ write_x509_type_tmp() { write_legacy_file_v2 "$1" "$write_x509_file_tmp" || \ die "write_x509_type_tmp - write $1" + verbose ": write_x509_type_tmp: $1 COMPLETE" } # => write_x509_type_tmp() From 53a08443016fe31cde9c21b86bd81e61cc04e2a6 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Sat, 12 Oct 2024 21:50:36 +0100 Subject: [PATCH 2/3] ChangeLog: sign-req: Allow custom X509 Types Signed-off-by: Richard T Bonhomme --- ChangeLog | 1 + 1 file changed, 1 insertion(+) diff --git a/ChangeLog b/ChangeLog index a07abecc..999b7272 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ Easy-RSA 3 ChangeLog 3.2.2 (TBD) + * sign-req: Allow custom X509 Types (2ee08cc) (#1238) * Remove redundant file index.txt.attr (da3c249) (#1233) 3.2.1 (2024-09-13) From 4b2fc0ea65e4f707511bc4c4ab629c9050d5959b Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Sat, 12 Oct 2024 22:29:52 +0100 Subject: [PATCH 3/3] Add complete download URL for 'easyrsa-tools.lib' Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 20ab7d94..5a21fb22 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -5495,8 +5495,9 @@ EasyRSA Tools version is out of date: verbose "Missing: easyrsa-tools.lib" tools_error_txt="Missing: easyrsa-tools.lib -Use of command '$cmd' requires Easy-RSA tools library, source: -* https://github.com/OpenVPN/easy-rsa/dev/easyrsa-tools.lib +Use of command '$cmd' requires Easy-RSA tools library. +Source: https://github.com/OpenVPN/easy-rsa/dev/easyrsa-tools.lib +Download: https://raw.githubusercontent.com/OpenVPN/easy-rsa/refs/heads/master/dev/easyrsa-tools.lib Place a copy of easyrsa-tools.lib in a standard system location." return 1