Skip to content

Commit

Permalink
sign-req: Allow custom X509 Types
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
TinCanTech committed Oct 12, 2024
1 parent fa887bb commit 2ee08cc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 2ee08cc

Please sign in to comment.