summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-02-12 22:53:14 +0100
committerCarl Hetherington <cth@carlh.net>2022-02-12 23:15:20 +0100
commit9bda3fda70912d73266a2dbac5470ca23d2ff6fd (patch)
treebf4efad1536b3a8851fc3a7cf91514ba24b4fe1e /src
parent94e5ee4943069d839f6b0b8081704d130cd9ec5c (diff)
Go back to 10-year certificate validity periods (#2174).
Diffstat (limited to 'src')
-rw-r--r--src/lib/config.cc1
-rw-r--r--src/lib/util.h1
-rw-r--r--src/wx/config_dialog.cc1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc
index 0d70c16fc..abf0eb42b 100644
--- a/src/lib/config.cc
+++ b/src/lib/config.cc
@@ -204,6 +204,7 @@ Config::create_certificate_chain ()
{
return make_shared<dcp::CertificateChain> (
openssl_path(),
+ CERTIFICATE_VALIDITY_PERIOD,
"dcpomatic.com",
"dcpomatic.com",
".dcpomatic.smpte-430-2.ROOT",
diff --git a/src/lib/util.h b/src/lib/util.h
index 10c5678ff..cbf4b491b 100644
--- a/src/lib/util.h
+++ b/src/lib/util.h
@@ -78,6 +78,7 @@ namespace dcp {
/** Maximum size of the XML part of a closed caption file, according to SMPTE Bv2.1 */
#define MAX_CLOSED_CAPTION_XML_SIZE (256 * 1024)
#define MAX_CLOSED_CAPTION_XML_SIZE_TEXT "256KB"
+#define CERTIFICATE_VALIDITY_PERIOD (10 * 365)
extern std::string program_name;
extern bool is_batch_converter;
diff --git a/src/wx/config_dialog.cc b/src/wx/config_dialog.cc
index 514a6cde6..c5879d3bb 100644
--- a/src/wx/config_dialog.cc
+++ b/src/wx/config_dialog.cc
@@ -583,6 +583,7 @@ CertificateChainEditor::remake_certificates ()
_set (
make_shared<dcp::CertificateChain> (
openssl_path (),
+ CERTIFICATE_VALIDITY_PERIOD,
d->organisation (),
d->organisational_unit (),
d->root_common_name (),