summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-02-12 23:11:44 +0100
committerCarl Hetherington <cth@carlh.net>2022-02-12 23:15:31 +0100
commit3e6b2d886961177c8d89b3f9168393d33c13bff2 (patch)
tree34db251b8c936579d91a549a4a40928c413396a4 /src/tools
parent9bda3fda70912d73266a2dbac5470ca23d2ff6fd (diff)
Warn if the signing certificates have a validity period > 10 years (#2174).
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/dcpomatic.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc
index a273d008b..9990f05ad 100644
--- a/src/tools/dcpomatic.cc
+++ b/src/tools/dcpomatic.cc
@@ -1822,6 +1822,23 @@ private:
d->Destroy ();
return r == wxID_OK;
}
+ case Config::BAD_SIGNER_VALIDITY_TOO_LONG:
+ {
+ if (config->nagged(Config::NAG_BAD_SIGNER_CHAIN_VALIDITY)) {
+ return false;
+ }
+ auto d = new RecreateChainDialog (
+ _frame, _("Recreate signing certificates"),
+ _("The certificate chain that DCP-o-matic uses for signing DCPs and KDMs has a validity period\n"
+ "that is too long. This will cause problems playing back DCPs on some systems.\n"
+ "Do you want to re-create the certificate chain for signing DCPs and KDMs?"),
+ _("Do nothing"),
+ Config::NAG_BAD_SIGNER_CHAIN_VALIDITY
+ );
+ int const r = d->ShowModal ();
+ d->Destroy ();
+ return r == wxID_OK;
+ }
case Config::BAD_SIGNER_INCONSISTENT:
{
auto d = new RecreateChainDialog (