Skip to content

Commit

Permalink
Fix, add 1 hour when showing the next date you could issue a cert whe…
Browse files Browse the repository at this point in the history
…n hitting the rate limit.

Fix, add 1 hour when showing the next date you could issue a cert when hitting the rate limit. This is because Let's Encrypt always issue the certificates using 1 hour less than real time but Let's Encrypt keeps the real time in their DB to remove expired limits
  • Loading branch information
sahsanu committed Feb 15, 2018
1 parent 3da1d59 commit 92bbc5a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lectl
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@
# 2017-Sep-15: I want to thank Github User spikebike (https://github.com/spikebike) for the tip to be able to search more or less than 100 certificates on crt.sh site (v0.10)
# 2017-Oct-06: Enhanced, utilities are defined in variables so it is easier to change them if you are using for example OS X and want to change date by gnu date (ggdate) (v0.11)
# 2017-Oct-06: Fix, if maxnumberofcerts is less than ratelimit there is no need to show any advice because it won't be accurate (v0.11)
# 2018-Jan-17: Enhanced, added option to use gdate and gsed in MacOS thanks to fnkr https://github.com/fnkr
# 2018-Jan-17: Enhanced, added option to use gdate and gsed in MacOS thanks to fnkr https://github.com/fnkr (v0.12)
# 2018-Feb-15: Fix, add 1 hour when showing the next date you could issue a cert when hitting the rate limit. This is because Let's Encrypt always issue the certificates using 1 hour less than real time but Let's Encrypt keeps the real time in their DB to remove expired limits (v0.13)
# TODO:
# Clean up and comment the code
# Create auto-update version (comming soon)
Expand All @@ -114,9 +115,9 @@ if [ "$(uname -s)" = "Darwin" ]; then
fi

# Script version/name variables
version='0.12'
version='0.13'
scriptname='lectl'
lastmodification='2018-January-17'
lastmodification='2018-February-15'
checknewversion=1
forceupgrade=0
maxnumberofcerts=100
Expand Down

0 comments on commit 92bbc5a

Please sign in to comment.