Skip to content

Cleaning up database of expired certificates - needed / planned / recommended? #2059

Answered by tashian
fibbs asked this question in General
Discussion options

You must be logged in to vote

Hi Christian,

Great question.
One reason we store certs in a database is for passive revocation.
For example, SSH host certs are often renewed with the SSHPOP provisioner.
If you don't want a certificate to be renewable for any reason, you'd want to revoke it, using step ssh revoke.
This command uses the history of issued certificates to look up a cert to be revoked.

Another reason we store certificates in the db is to aid reporting later on.
But, step-ca doesn't offer much in the way of reporting. We have a commercial version of step-ca called Step CA Pro, that has a lot more of those features (OpenTelemetry, relational db schema, etc.).
So, for expired certs, yes, you can clear those ou…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fibbs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants