I am developing a platform for certificate management using the Let's Encrypt APIs. As per the community suggestions, I am not storing the certificate private key in the database.
Now, I have a certificate issued and revoked. Now, for example the client wishes to issue certificate again. I am issuing the certificate only if order status
is pending
. Otherwise, the client may try to issue multiple certificates which would be a problem during billing.
If the certificate is revoked, the order status
is still in valid
state and I am unable to issue the certificate for the revoked identifier. Is there a way to get around it?
This is my revoked order details-
{
"status": "valid",
"expires": "2024-01-10T05:45:31Z",
"identifiers": [
{
"type": "dns",
"value": "toolsguruhub.com"
}
],
"authorizations": [
"https://acme-staging-v02.api.letsencrypt.org/acme/authz-v3/10401692324"
],
"finalize": "https://acme-staging-v02.api.letsencrypt.org/acme/finalize/130963334/13402823224",
"certificate": "https://acme-staging-v02.api.letsencrypt.org/acme/cert/2b815eabdeb96e8998aa5c387827ab8753f2"
}