Coder Social home page Coder Social logo

Comments (3)

MatthiasValvekens avatar MatthiasValvekens commented on May 22, 2024

The path could not be validated because the end-entity certificate revocation checks failed: OCSP response is from after the validation time; CRL is from after the validation time

This error message explains the problem: your system time falls outside (in this case, before) the validation window of the CRL / OCSP responses that were fetched. With CRLs, that's a little unusual, but it's a somewhat common issue with OCSP responders. Usually, it's caused by clock drift (or perhaps bad timezone handling on the server end).

There are two settings in the config file that may be useful to you:

  • There's a top-level config key called time-tolerance that takes a value in seconds (the default is 10s). The larger this value is, the more clock drift will be tolerated.
  • Similarly, there's a top-level config flag called retroactive-revinfo (boolean value, default False) that will cause pyHanko to ignore all lower bounds on CRL / OCSP validity windows. It's not really intended for use in this scenario, but if setting time-tolerance doesn't work, this probably will.

Currently, these two options are only documented in pyhanko-certvalidator docstrings, not in the CLI documentation. I should probably do something about that.

from pyhanko.

satanu01 avatar satanu01 commented on May 22, 2024

OK, but how to set up these above in the config file and how to create that config file?

from pyhanko.

MatthiasValvekens avatar MatthiasValvekens commented on May 22, 2024

They're both top-level settings in the general YAML config file; the same file as the one containing your PKCS#11 settings.

I'd look something like

time-tolerance: 100
retroactive-revinfo: true

pkcs11-setups:
   ...  # PCKS#11 settings go here

# whatever other settings you need go here

from pyhanko.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.