openssl ca
The OpenSSL command that runs a minimal certificate authority, signing requests, revoking certificates and publishing revocation lists while tracking them in a database file.
In more detail
It reads a configuration file that names the authority's database, usually a text file called index.txt, where every issued and revoked certificate is recorded. The -revoke option marks a certificate revoked with a reason, and -gencrl writes a signed certificate revocation list. It is meant for labs and learning; production authorities use dedicated software and hardware-protected keys.
Examples
openssl ca -config ca.cnf -cert ca.pem -keyfile ca.key -revoke www.pem -crl_reason keyCompromiseopenssl ca -config ca.cnf -cert ca.pem -keyfile ca.key -gencrl -out crl.pemRelated terms
- certificate authority — A trusted party that signs certificates, so anyone who trusts it can trust the certificates it issued.
- CRL — A list, signed and published by a certificate authority, of the serial numbers of certificates it has revoked before their expiry.
- revocation — Cancelling a certificate before its expiry date, usually because its private key leaked or it was issued wrongly, and telling clients to stop trusting it.
- openssl crl — The OpenSSL command for reading, checking and converting certificate revocation list files.
Taught in
- Public Key Infrastructure: X.509 Certificates & CAs — Cybersecurity Fundamentals, GRC & Cryptography