Changeset 2819


Ignore:
Timestamp:
08/01/2011 18:18:31 (17 months ago)
Author:
chris
Message:

Fix date overflow in new CA certificates, make them valid until 2038,
thanks to JP Vossen for reporting this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbstored/bbstored-certs.in

    r537 r2819  
    22use strict; 
    33 
    4 # validity period for root certificates -- default is a very long time 
    5 my $root_sign_period = '10000'; 
     4# validity period for root certificates -- default is 2038, the best we can do for now 
     5my $root_sign_period = int(((1<<31) - time()) / 86400); 
    66 
    77# but less so for client certificates 
Note: See TracChangeset for help on using the changeset viewer.