Checking Remaining Time on Rate Limit Using Custom Bash Script and crt.sh


#1

Hi folks,

I reached the ratelimit for a domain.
Is there a way to check the remaining time for obtaining new certificates?

Thanks,
Sairahcaz


#2

Hi @Sairahcaz,

You can check the issued certs for your domain at https://crt.sh then count the last 20 issued certs, take the first issued of that 20 certs, check when it was issued and add 7 days to it and you will have the date when you could issue a new cert.

If you use Linux, you can also use the command line tool lectl https://github.com/sahsanu/lectl and check the domain from command line, something like

./lectl -s yourdomain.tld

and it will show the issued certs for yourdomain.tld and *.yourdomain.tld. If you have reached the 20 certs per week limit you will see at the bottom when you could issue a new cert:

[...]    
Sorry, you can't issue any certificate, you already issued 20 certificates on last 7 days
You could issue next certificate on [Here the date]

Cheers,
sahsanu


#3

what is this magic :smiley:

Thanks for Sharing


#4

Wow, very nice. Thank you very much!


#5

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.