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 507801 - Certificates and private keys can be passed to libsoup only as file names
Certificates and private keys can be passed to libsoup only as file names
Status: RESOLVED DUPLICATE of bug 634425
Product: libsoup
Classification: Core
Component: API
unspecified
Other Linux
: Normal normal
: GNOME 2.24
Assigned To: libsoup-maint@gnome.bugs
libsoup-maint@gnome.bugs
Depends on:
Blocks:
 
 
Reported: 2008-01-07 09:58 UTC by Marco Barisione
Modified: 2010-11-09 16:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Marco Barisione 2008-01-07 09:58:25 UTC
Certificates and private keys have to be passed to libsoup as file names (using SOUP_SERVER_SSL_CERT_FILE, SOUP_SERVER_SSL_KEY_FILE and SOUP_SESSION_SSL_CA_FILE) but this somewhat inconvenient if you happen to have them already in memory.

An improvement would be to accept a GInputStream or a GString containing the certificate.
Comment 1 Reinout van Schouwen 2008-10-20 21:28:48 UTC
Gnome 2.24 has been released, any update on the status of this bug?
Comment 2 Dan Winship 2008-10-21 13:47:50 UTC
the "ssl" branch in the libsoup git repo has a little bit of work on this. I was trying to fix all of the ssl issues at once, rather than adding new API specifically for this which would then later become deprecated.

One way to handle this would be to figure out at least the broad outline of how the new SSL API will work, and then implement just a tiny bit of it for now, which (based on what's currently in the ssl branch) would probably mean something like:

    ssl = soup_ssl_client_new_from_data (data);
    session = soup_session_async_new_with_options (SOUP_SESSION_SSL_CLIENT, ssl,
                                                   NULL);
    g_object_unref (ssl);
Comment 3 Craig Ringer 2009-06-09 05:57:31 UTC
It may be worth knowing that gnome-keyring now supports certificate management (see comments on bug 585214) though it does a good job of hiding that from the user and the Seahorse tool doesn't yet know about it.

Being able to tell libsoup to obtain the certificate from the gnome keyring, or pass an appropriate structure obtained from gnome-keyring, would be a big benefit.
Comment 4 Craig Ringer 2009-06-10 06:58:41 UTC
NSS is working on a shared keystore with multi-application access to help with this:

https://wiki.mozilla.org/NSS:Roadmap#SQLite-Based_Multiaccess_Certificate_and_Key_Databases

See also Fedora's crypto consolidation efforts:

http://fedoraproject.org/wiki/FedoraCryptoConsolidation
Comment 5 Dan Winship 2010-11-09 16:13:14 UTC
This will be fixed in 2.32/3.0 when we port to the new GIO TLS APIs (bug 588189), which allow constructing GTlsCertificates from files, PEM strings, or DER bytearrays.

*** This bug has been marked as a duplicate of bug 634425 ***