What happens during an ACME finalize request?
At a high level:
Revocation can happen at any time after (5), whether or not step (6) was successful. We do things this way so that even in the event of a power failure or error storing data, we have a record of what we planned to sign (the tbsCertificate bytes of the linting certificate).
Note that to avoid needing a migration, we chose to store the linting certificate from (5) in the “precertificates” table, which is now a bit of a misnomer.