Fix DKDM generation by moving the validity period a day inside the certificate validity.
authorCarl Hetherington <cth@carlh.net>
Wed, 20 May 2020 19:12:27 +0000 (21:12 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 20 May 2020 19:12:27 +0000 (21:12 +0200)
src/tools/dcpomatic.cc

index 13569d1..3168197 100644 (file)
@@ -905,9 +905,9 @@ private:
 
 
                dcp::LocalTime from (Config::instance()->signer_chain()->leaf().not_before());
-               from.add_minutes (1);
+               from.add_days (1);
                dcp::LocalTime to (Config::instance()->signer_chain()->leaf().not_after());
-               to.add_minutes (-1);
+               to.add_days (-1);
 
                optional<dcp::EncryptedKDM> kdm;
                try {