Keep signing certificates / keys in config.xml rather than on disk; allow configuration.
[dcpomatic.git] / src / wx / screen_dialog.cc
index 6b58145eb367737c6bf6317f8b4b7d368bf43b8f..10650263b1a929cfb418e52dd463657baa08a86c 100644 (file)
@@ -89,7 +89,7 @@ void
 ScreenDialog::load_certificate (boost::filesystem::path file)
 {
        try {
-               _certificate.reset (new dcp::Certificate (file));
+               _certificate.reset (new dcp::Certificate (dcp::file_to_string (file)));
                _certificate_text->SetValue (_certificate->certificate ());
        } catch (dcp::MiscError& e) {
                error_dialog (this, wxString::Format (_("Could not read certificate file (%s)"), e.what()));