Support loading of certificate chains for trusted devices.
authorCarl Hetherington <cth@carlh.net>
Sat, 8 Apr 2023 22:19:34 +0000 (00:19 +0200)
committerCarl Hetherington <cth@carlh.net>
Sat, 8 Apr 2023 22:19:34 +0000 (00:19 +0200)
src/wx/screen_dialog.cc

index 7578ca4ca9f7d856f6df44b193a31a13db300291..3b2a1bd8560f502eb970f3315e8fc1dfb5b9c3fc 100644 (file)
@@ -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) {