Bug 36207

Summary: Add example which dumps recieved TLS certificates to stdout
Product: Wocky Reporter: Stef Walter <stefw>
Component: GeneralAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium CC: sjoerd, stefw
Version: git masterKeywords: patch
Hardware: Other   
OS: All   
URL: http://git.collabora.co.uk/?p=user/stefw/wocky.git;a=shortlog;h=refs/heads/dump-certificates
Whiteboard:
i915 platform: i915 features:

Description Stef Walter 2011-04-13 07:11:27 UTC
Also a handly tool, since TLS is hard to debug with 'openssl s_client'
Comment 1 Jonny Lamb 2011-04-13 07:21:29 UTC
This won't build if --with-tls isn't openssl. You should make it check that.
Comment 2 Stef Walter 2011-04-13 08:02:54 UTC
Good catch, fixed.
Comment 3 Jonny Lamb 2011-04-13 12:17:56 UTC
Oh yeah, I meant gnutls, not openssl. :-)

How come your example is full of printf/fprintfs? This makes me rather sad. 

+ * @author Jonny Lamb <jonny.lamb@collabora.co.uk>

o rly? Did I write any of this?!

I haven't really reviewed this though as I don't know anything about gnutls. Sorry...
Comment 4 Stef Walter 2011-04-20 22:01:11 UTC
Fixed those things. Rebased and pushed now branch to above url.

There's not much to know about gnutls in this case, we're just parsing out bits of the certificate, and encoding it in PEM format (base64).
Comment 5 Stef Walter 2011-08-13 05:56:44 UTC
Rebased and updated for wocky master. Sjoerd can I merge this?
Comment 6 Will Thompson 2012-11-14 18:34:08 UTC
I rebased and merged this, along with an extra patch to not use a real password: <http://cgit.freedesktop.org/wocky/commit/?id=3b8e1050>.

Only took 15 months… sorry!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.