Giter Club home page Giter Club logo

Comments (1)

ioerror avatar ioerror commented on September 26, 2024
       -l | --leap
              Normally, the passing of time or time yet to  come  ensures  that  SSL  verify  functions  will  fail  to  validate  certificates.  Commonly,
              X509_V_ERR_CERT_NOT_YET_VALID  and  X509_V_ERR_CERT_HAS_EXPIRED  are  painfully annoying but still very important error states. When the only
              issue with the certificates in question is the timing information, this option allows you to trust the remote system's time, as long as it is
              after  RECENT_COMPILE_DATE  and  before  MAX_REASONABLE_TIME.  The  connection  will  only be trusted if X509_V_ERR_CERT_NOT_YET_VALID and/or
              X509_V_OKX509_V_ERR_CERT_HAS_EXPIRED are the only errors encountered. The SSL verify function will not return  X509_V_OK  if  there  are  any
              other  issues, such as self-signed certificates or if the user pins to a CA that is not used by the remote server. This is useful if your RTC
              is broken on boot and you are unable to use DNSEC until you've at least had some kind of leap of cryptographically assured data.

In theory, --leap should do exactly what you suggest if the remote system time is after RECENT_COMPILE_DATE and before MAX_REASONABLE_TIME which seems like a fine bounding. This happens without setting the clock at verification time and only sets it if the verification errors are only related to violating those time constraints. Isn't that almost what you want?

from tlsdate.

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.