Overcoming Rate Limits while debugging Let’s Encrypt’s certificate renewal script

I am building a script to automatically renew Let’s Encrypt certificates and then updates other services’ certificates as well using /certificates/enable-ssl-certificate but after attempting to get 5 certificates while debugging my script I started receiving

[henno@router] /certificate> enable-ssl-certificate
progress: [error] Error creating new order :: too many certificates (5) already issued for this exact set of domains in the last 168 hours: 111111111111.sn.mynetname.net, retry after 2024-01-22T02:56:34Z: see
https://letsencrypt.org/docs/duplicate-certificate-limit/, type: urn:ietf:params:acme:error:rateLimited, code: 429

How can I keep debugging my script without having to wait a week after 5 attempts?

This would require using the staging server, which I think you can’t set on this RouterOs API for letsencrypt.

From Letsencrypt

When troubleshooting or testing the deployment of your applications we encourage you to configure your ACME client to use our staging environment. Rate limits for our staging environment are significantly higher.

https://letsencrypt.org/docs/staging-environment/