OPENSSL-CRL(1ossl)

πŸ“¦
version 15.1 Β· 2 versions
, in freebsd 15.1

πŸ’– openssl-crl πŸ’–

okay bestie, so this is openssl-crl β€” it lives in the OpenSSL family of manual pages, and it's literally just called the CRL command. CRL = Certificate Revocation List, iykyk. Let's get into it πŸŽ€


✨ SYNOPSIS ✨

openssl crl [-help] [-inform DER|PEM] [-outform DER|PEM] [-key filename]
[-keyform DER|PEM|P12] [-dateopt] [-text] [-in filename] [-out filename]
[-gendelta filename] [-badsig] [-verify] [-noout] [-hash] [-hash_old]
[-fingerprint] [-crlnumber] [-issuer] [-lastupdate] [-nextupdate]
[-nameopt option] [-CAfile file] [-no-CAfile] [-CApath dir] [-no-CApath]
[-CAstore uri] [-no-CAstore] [-provider name] [-provider-path path]
[-provparam [name:]key=value] [-propquery propq]

🌸 DESCRIPTION 🌸

So like, this command processes CRL files that are in either DER or PEM format. That's the whole vibe. She's a CRL-processing icon and she knows it πŸ’…


πŸ¦‹ OPTIONS πŸ¦‹

  • -help β€” prints out a usage message so you're not just out here guessing. 🫢
  • -inform DER|PEM β€” the format of the CRL you're feeding in. If you don't say anything, it's unspecified by default β€” no assumptions made, very demure. Peep openssl-format-options(1) for the deets.
  • -outform DER|PEM β€” the format of the CRL you're getting out. Default is PEM. Again, openssl-format-options(1) has the full rundown.
  • -key filename β€” the private key that's gonna be used to sign the CRL. πŸ”‘
  • -keyform DER|PEM|P12 β€” what format that private key file is in; unspecified by default. See openssl-format-options(1).
  • -in filename β€” tells her which input filename to read from. Don't specify it and she'll just take standard input, no big deal.
  • -out filename β€” which output filename to write to. Default is standard output.
  • -gendelta filename β€” outputs a comparison between the main CRL and the one you specify here. cute little side-by-side moment ✨
  • -badsig β€” deliberately corrupts the signature before writing it out. Yes, on purpose. It's for testing, bestie β€” do not ship this. πŸ’€
  • -dateopt β€” sets the date output format. The values are: rfc_822 and iso_8601. Defaults to rfc_822.
  • -text β€” prints the CRL out in text form. readable queen πŸ‘‘
  • -verify β€” verifies the signature inside the CRL. If verification fails, the program immediately exits β€” like, immediately β€” so any further option processing (e.g. -gendelta) gets skipped. 🚨

Also lowkey important: this option is implicitly enabled if any of -CApath, -CAfile or -CAstore is specified.

  • -noout β€” don't output the encoded version of the CRL. withholding, honestly.
  • -fingerprint β€” outputs the fingerprint of the CRL.
  • -crlnumber β€” outputs the number of the CRL.
  • -hash β€” outputs a hash of the issuer name. Super handy for looking up CRLs in a directory by issuer name. πŸ—‚οΈ
  • -hash_old β€” outputs the "hash" of the CRL issuer name using the older algorithm, the one OpenSSL used before version 1.0.0. vintage behavior fr.
  • -issuer β€” outputs the issuer name.
  • -lastupdate β€” outputs the lastUpdate field.
  • -nextupdate β€” outputs the nextUpdate field.
  • -nameopt option β€” how the subject or issuer names get displayed. See openssl-namedisplay-options(1) for the full menu.
  • -CAfile file, -no-CAfile, -CApath dir, -no-CApath, -CAstore uri, -no-CAstore β€” head to "Trusted Certificate Options" in openssl-verification-options(1) for all the details. 🫑
  • -provider name, -provider-path path, -provparam [name:]key=value, -propquery propq β€” these live under "Provider Options" in openssl(1), provider(7), and property(7). go read those if you wanna go deeper 🧚

🌈 EXAMPLES 🌈

Convert a CRL file from PEM to DER:

openssl crl -in crl.pem -outform DER -out crl.der

Output the text form of a DER encoded certificate:

openssl crl -in crl.der -text -noout

πŸ’€ BUGS πŸ’€

Ideally you'd be able to create a CRL using the appropriate options and files too. Alas. Not yet. That's the dream, bestie 😭


⭐ SEE ALSO ⭐

openssl(1), openssl-crl2pkcs7(1), openssl-ca(1), openssl-x509(1), ossl_store-file(7)


πŸŽ€ HISTORY πŸŽ€

Ever since OpenSSL 3.3, the -verify option will exit with 1 on failure. noted! πŸ“


Copyright 2000-2024 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.


πŸ’– and that's the whole page, bestie!! this one's from OpenSSL version 3.5.6, dated 2026-04-07, and it's the OPENSSL-CRL(1ossl) manual β€” slay, go process some CRLs, ily 🫢✨
πŸ“¦ where this page comes from