node-acme-client icon indicating copy to clipboard operation
node-acme-client copied to clipboard

Keep track of created orders in the auto mode.

Open air2 opened this issue 11 months ago • 0 comments

Because of bug https://github.com/letsencrypt/boulder/issues/3335, it is recommended to let clients keep track of orders. However currently the orders generated in the auto mode cannot be tracked. A simple callback in the options for the auto certificate registration could solve this. After creating the order something like:

if (opts.createdOrderCallbackFn) {
    try {

        await opts.createdOrderCallbackFn(order);
    } catch (error) {
        log(`[auto] createdOrderCallbackFn threw error: ${getAsError(error).message}`);
        throw error
    }
}

Could let the caller notify of the created order and store it as liked. I am relative new to Let's Encrypt and the Acme protocol. So maybe this idea is just not the way to go. Can somebody with more experience shine a light on this?

I could of course create a pull request for this.

air2 avatar Jan 30 '25 17:01 air2