mirror of
https://github.com/certbot/certbot.git
synced 2026-01-26 07:41:33 +03:00
per discussion, remove clock skew checks; also, two TODOs moved to filed issues
This commit is contained in:
@@ -261,19 +261,9 @@ class session(object):
|
||||
self.die(r, r.BadRequest, uri="%spriorrequest" % error_uri)
|
||||
return
|
||||
# Process the request.
|
||||
# TODO: check that each element of the CA/B Forum Baseline
|
||||
# Requirements is enforced here or elsewhere.
|
||||
# TODO: check that the request involves a public key algorithm
|
||||
# that we support.
|
||||
if not all([safe("recipient", recipient), safe("csr", csr)]):
|
||||
self.die(r, r.BadRequest, uri="%sillegalcharacter" % error_uri)
|
||||
return
|
||||
if timestamp - time.time() > 3600:
|
||||
self.die(r, r.BadRequest, uri="%sfuture" % error_uri)
|
||||
return
|
||||
if time.time() - timestamp > 100:
|
||||
self.die(r, r.BadRequest, uri="%spast" % error_uri)
|
||||
return
|
||||
if len(csr) > max_csr_size:
|
||||
self.die(r, r.BadCSR, uri="%slongcsr" % error_uri)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user