Giter Club home page Giter Club logo

Comments (5)

pysysops avatar pysysops commented on August 21, 2024

This could be solved easily...

What might be the best way to handle this? Raise a warning and fail, set the expires date to the same as the parent, or raise a warning only if the user has specified an expiry (set to parent expiry if not explicitly set)?

from django-ca.

mathiasertl avatar mathiasertl commented on August 21, 2024

Hi,

Sorry I didn't attend to this issue for a while. I was held up in other projects. In any case, I didn't give it much importance since initial research into the TLS specs showed that this is not actually an error.

After no longer being held up by other projects and some more research, I'm sure it actually is an error. I'm in the process of implementing this now. I've settled for this behavior:

  • For creating child CAs, the maximum expiry is silently set to that of its parent. The reason is that any default of X days is automatically after that of the parent a day after issuing the parent.
  • For child certificates, I throw an error if the default or whatever the user specifies is after the CAs expiry.

This means that with a default of a year and a CA expiring in 10 years, you'll be able to silently issue certs for nine years, in the tenth year you'll get errors with the default expiry. This seems reasonable because an expiring CA is something you really should take care of. In the meant time, you can issue shorter-lived certs if you explicitly want.

from django-ca.

mathiasertl avatar mathiasertl commented on August 21, 2024

PS: If there's strong objection to that behavior please let me know. I'll definitely consider it.

from django-ca.

pysysops avatar pysysops commented on August 21, 2024

That seems the most sensible approach 👍

from django-ca.

mathiasertl avatar mathiasertl commented on August 21, 2024

I've just tagged version 1.4.0 which implements this behavior (and has a few new features). Please just open a new issue if you find any problems!

from django-ca.

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.