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 keyCompromise
openssl ca -config ca.cnf -cert ca.pem -keyfile ca.key -gencrl -out crl.pem

Related terms

Taught in

References