+
+optional<string>
+DownloadCertificatePanel::load_certificate (boost::filesystem::path file, string url)
+{
+ try {
+ _certificate = dcp::Certificate (dcp::file_to_string(file));
+ _url = url;
+ } catch (dcp::MiscError& e) {
+ return String::compose(wx_to_std(_("Could not read certificate file (%1)")), e.what());
+ }
+ return {};
+}
+
+
+optional<string>
+DownloadCertificatePanel::load_certificate_from_chain (boost::filesystem::path file, string url)