Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gen-crl: Create additional CRL in DER format #1198

Merged
merged 2 commits into from
Aug 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Easy-RSA 3 ChangeLog

3.2.1 (TBD)

* gen-crl: Create additional CRL in DER format (69df0d8) (#1198)
* self-sign: Allow Edwards Curve based keys (81b749b) (#1197)
* Re-enable command 'renew' (version 2): Requires EasyRSA Tools (30fe311) (#1195)
* bug-fix: revoke: Pass the correct certificate location (24d5514)
Expand Down
13 changes: 13 additions & 0 deletions easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -3439,6 +3439,7 @@ It is now possible to sign a new certificate for '$file_name_base'"
# gen-crl backend
gen_crl() {
out_file="$EASYRSA_PKI/crl.pem"
out_der="$EASYRSA_PKI/crl.der"

out_file_tmp=""
easyrsa_mktemp out_file_tmp || \
Expand All @@ -3461,7 +3462,19 @@ gen_crl() {
die "Failed to move temp CRL file."
fi

# Copy to DER - As published by OpenSSL
if "$EASYRSA_OPENSSL" crl -in "$out_file" -out "$out_der" \
-outform DER
then
crl_der_note="An updated CRL DER copy has been created:
* $out_der"
else
crl_der_note="Failed to create CRL DER copy!"
fi

notice "\
$crl_der_note

An updated CRL has been created:
* $out_file"

Expand Down