Tk Library Source Code

View Ticket
Login
Ticket UUID: 3433470
Title: Expired certificates
Type: Bug Version: None
Submitter: stwo Created on: 2011-11-04 11:24:55
Subsystem: Development Tools Assigned To: andreas_kupries
Priority: 9 Immediate Severity:
Status: Closed Last Modified: 2013-01-22 08:50:12
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2013-01-22 01:50:12
Description:
The certificates 'receiver.crt' and 'transmitter.crt' have expired, causing test failures in modules 'comm' and 'pop3' if 'tcltls' is installed at the time the test suite is run.
Also, the README in the devtools directory mentions that only the 'pop3' tests use these files, which is not true, as noted above.
Please regen these certs with much later expiry dates.
User Comments: andreas_kupries added on 2013-01-22 08:50:12:

allow_comments - 1

Found my problem. I extended the root cert validity period also, to 100 years, and this screwed things. I suspect a y2038 problem (aka 32/64 time_t). Going back to 10 years root cert (+10 days), and the result worked. 

We now have 10 year certs, at 1024 bit.

andreas_kupries added on 2013-01-22 02:44:55:
Committed rev [7b80198969]. 10 year certs, 4096bits.
The README was ok, listing both "comm" and "pop3" as users.

... Grr ... Should not have committed ... I still see errors with the new certs, in the two test suites :(
Claims cert expired. SimpleCA otoh claims valid until 2023.
Will have to dig deeper, again :(
Tempted to make 100yr certs, after I understand the continued failure.

Now how do I again tell TclTLS how to spit out more internal data about the cert verification ?

eee added on 2013-01-12 01:27:08:
Bumping pri to 9 per aku

eee added on 2013-01-11 05:08:07:
There are still expired certificates in various places.

examples/smtpd/server-public.pem expired Sep/10/2012 (and appears to be a CA root cert?)

examples/transfer/certs/receiver.crt expired Apr/08/2010,
examples/transfer/certs/transmitter.crt expired Apr/08/2010,
but examples/transfer/certs/ca.crt is good for another six years, and is a CA root cert.

modules/devtools/receiver.crt expired Nov/08/2012,
modules/devtools/transmitter.crt expired Nov/08/2012,
but modules/devtools/ca.crt is good for another 8 years, and is a CA root cert.

It should be fairly trivial to modify SimpleCA to fix certificates to a ten year lifetime instead of one year, and if you do that I recommend going to 4096 bits as well.

andreas_kupries added on 2011-11-09 12:25:34:
Updated the certs. SimpleCA does not (seem to) allow me to specify an expiration date, it seems to be fixed to a single year. Updated the README.