From 76d12be80c4377edfc3e8fce4da01a575dec74d1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 9 Apr 2023 00:19:34 +0200 Subject: [PATCH] Support loading of certificate chains for trusted devices. --- src/wx/screen_dialog.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wx/screen_dialog.cc b/src/wx/screen_dialog.cc index 7578ca4ca..3b2a1bd85 100644 --- a/src/wx/screen_dialog.cc +++ b/src/wx/screen_dialog.cc @@ -72,7 +72,7 @@ public: } try { - _certificate = dcp::Certificate(dcp::file_to_string(dialog.paths()[0])); + _certificate = dcp::CertificateChain(dcp::file_to_string(dialog.paths()[0])).leaf(); _thumbprint->SetValue (std_to_wx(_certificate->thumbprint())); setup_sensitivity(); } catch (dcp::MiscError& e) { -- 2.30.2