Skip to content

Commit

Permalink
sign-req: Require 128bit serial number
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Aug 14, 2024
1 parent 4743021 commit 806ee19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -2407,6 +2407,9 @@ The certificate request file is not in a valid X509 format:
for i in 1 2 3 4 5; do
easyrsa_random 16 serial

# Require 128bit serial number
[ "$serial" = "${serial#00}" ] || continue

# Check for duplicate serial in CA db
if check_serial_unique "$serial" batch; then
serial_is_unique=1
Expand Down

0 comments on commit 806ee19

Please sign in to comment.