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 730364 - Add HTTPS or secure connection support with certificates and keys
Add HTTPS or secure connection support with certificates and keys
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Broadway
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Martyn Russell
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2014-05-19 10:12 UTC by Martyn Russell
Modified: 2014-12-15 11:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to add this feature to GTK+ (10.17 KB, patch)
2014-05-19 10:19 UTC, Martyn Russell
committed Details | Review
Demonstration of the patch working (206.17 KB, image/png)
2014-05-19 10:21 UTC, Martyn Russell
  Details

Description Martyn Russell 2014-05-19 10:12:31 UTC
Summary pretty much says it all :)
Comment 1 Martyn Russell 2014-05-19 10:19:25 UTC
Created attachment 276757 [details] [review]
Patch to add this feature to GTK+

This was quite easy to add and seems to work quite well.

How to test... (sudo is needed to listen and the IP address is just my local network dynamically allocated address, it just has to match in the browser window and broadwayd -a command):

$ cd gdk/broadway
$ openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ./broadway.key -out ./broadway.crt
$ sudo ./broadwayd -a 192.168.1.65 -c ./broadway.crt -k ./broadway.key &
$ sudo GDK_BACKEND=broadway /opt/gnome/bin/gtk3-demo

In browser connect using address:

  https://192.168.1.65:8080

Enjoy! :)
Comment 2 Martyn Russell 2014-05-19 10:21:17 UTC
Created attachment 276758 [details]
Demonstration of the patch working
Comment 3 Martyn Russell 2014-12-15 11:29:06 UTC
Comment on attachment 276757 [details] [review]
Patch to add this feature to GTK+

Alex gave me a quick review on IRC today. It's now committed to master.
Comment 4 Martyn Russell 2014-12-15 11:29:58 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.

commit c00cc269c5be8537a0ae5a37991e2c8ffc918d81
Author: Michael Natterer <mitch@lanedo.com>
Date:   Mon Dec 15 11:25:43 2014 +0000

    broadway: Initial SSL support
    
    Use the new --cert and --key parameters to broadwayd to pass paths to
    cert and key files.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=730364