Commit Graph

11 Commits (master)

Author SHA1 Message Date
Mariano Cano c7f226bcec
Add support for renew when using stepcas
It supports renewing X.509 certificates when an RA is configured with stepcas.
This will only work when the renewal uses a token, and it won't work with mTLS.

The audience cannot be properly verified when an RA is used, to avoid this we
will get from the database if an RA was used to issue the initial certificate
and we will accept the renew token.

Fixes #1021 for stepcas
2 years ago
Mariano Cano 3694ba30dc Store certificate and provisioner in one transaction. 2 years ago
Mariano Cano 7d6116c3d0 Add GetCertificateData and refactor x509_certs_data. 2 years ago
Mariano Cano 41c6ded85e Store in the db the provisioner that granted a cert. 2 years ago
max furman 933b40a02a Introduce gocritic linter and address warnings 3 years ago
max furman e3826dd1c3 Add ACME CA capabilities 5 years ago
max furman 599fc1058c loadOrStore -> cmpAndSwap 5 years ago
max furman b73fe8c157 Add used OTT to DB during authToken step 5 years ago
max furman c242602231 reload and shutdown trickery
* Only shutdown the database once.
* Be careful when reloading the CA. Depending on whether the DB has
already been shutdown, and error may be unrecoverable.
5 years ago
max furman cbeca9383b Update nosql integration
* shutdown and reload database on SIGHUP
5 years ago
max furman ab4d569f36 Add /revoke API with interface db backend 5 years ago