After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 789804 - Export Certificate fails
Export Certificate fails
Status: RESOLVED FIXED
Product: gcr
Classification: Core
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: GNOME keyring maintainer(s)
GNOME keyring maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-11-02 06:43 UTC by Technical Support
Modified: 2019-02-22 11:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
ui: Fix certificate export dialog to not hang the application (1.74 KB, patch)
2017-11-04 02:44 UTC, Michael Catanzaro
committed Details | Review

Description Technical Support 2017-11-02 06:43:20 UTC
Selecting "Export Certificate" from the View Certificate dialog displays an open file dialog then freezes.
Comment 1 Michael Catanzaro 2017-11-02 11:52:02 UTC
OK, this one's almost surely GNOME's fault. ;)

I honestly can't find the Export Certificate button, though. Can you post a screenshot? Also please figure out what version of gcr you have installed on your system.
Comment 2 Technical Support 2017-11-03 00:09:35 UTC
:-)

Click the lock icon in the location field, click the View Certificate button, right click the certificate. 

gcr 3.20.0-5.1ubuntu1

Epiphany returns an error for sites that don't have a certificate on file (eg https://oo.net). This seems to be the only way to save a certificate in Epiphany.
Comment 3 Michael Catanzaro 2017-11-03 00:49:12 UTC
(In reply to Technical Support from comment #2)
> :-)
> 
> Click the lock icon in the location field, click the View Certificate
> button, right click the certificate.

OK, I can reproduce.
Comment 4 Michael Catanzaro 2017-11-04 02:44:12 UTC
The following fix has been pushed:
aabe746 ui: Fix certificate export dialog to not hang the application
Comment 5 Michael Catanzaro 2017-11-04 02:44:14 UTC
Created attachment 362950 [details] [review]
ui: Fix certificate export dialog to not hang the application

I don't know why -- I guess something must have changed in GTK+ -- but
currently the certificate export dialog does nothing except hang. It
can't receive any user input or anything.

gtk_dialog_run() seems to fix this, so let's use it.

Note we have to adjust the refcounting here now, since if the Cancel
button is pressed the operation will complete before
_gcr_certificate_exporter_export_async returns. The function is still
partially async, but it now blocks until the dialog is closed.
Comment 6 Michael Catanzaro 2017-11-04 02:45:05 UTC
Note: gcr is unmaintained, so this fix will probably not get released for a long time. But it's fixed in master now.
Comment 7 Technical Support 2017-11-04 21:05:08 UTC
It's nice when everything works :-)

In the meantime, it's not hard to script a workaround using openssl.