Skip to content

Commit 7a372a4

Browse files
committed
Merge branch 'TinCanTech-crl-to-der'
Signed-off-by: Richard T Bonhomme <[email protected]>
2 parents bdfa8ea + f648650 commit 7a372a4

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Easy-RSA 3 ChangeLog
22

33
3.2.1 (TBD)
44

5+
* gen-crl: Create additional CRL in DER format (69df0d8) (#1198)
56
* self-sign: Allow Edwards Curve based keys (81b749b) (#1197)
67
* Re-enable command 'renew' (version 2): Requires EasyRSA Tools (30fe311) (#1195)
78
* bug-fix: revoke: Pass the correct certificate location (24d5514)

easyrsa3/easyrsa

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3439,6 +3439,7 @@ It is now possible to sign a new certificate for '$file_name_base'"
34393439
# gen-crl backend
34403440
gen_crl() {
34413441
out_file="$EASYRSA_PKI/crl.pem"
3442+
out_der="$EASYRSA_PKI/crl.der"
34423443

34433444
out_file_tmp=""
34443445
easyrsa_mktemp out_file_tmp || \
@@ -3461,7 +3462,19 @@ gen_crl() {
34613462
die "Failed to move temp CRL file."
34623463
fi
34633464

3465+
# Copy to DER - As published by OpenSSL
3466+
if "$EASYRSA_OPENSSL" crl -in "$out_file" -out "$out_der" \
3467+
-outform DER
3468+
then
3469+
crl_der_note="An updated CRL DER copy has been created:
3470+
* $out_der"
3471+
else
3472+
crl_der_note="Failed to create CRL DER copy!"
3473+
fi
3474+
34643475
notice "\
3476+
$crl_der_note
3477+
34653478
An updated CRL has been created:
34663479
* $out_file"
34673480

0 commit comments

Comments
 (0)