View Issue Details

IDProjectCategoryView StatusLast Update
0003037unrealircdpublic2007-06-11 15:44
ReporterNazzy Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionsuspended 
Product Version3.2.5 
Summary0003037: Patch to provide some extra fun for SSL
DescriptionOkie, random chatting earlier, relating to me knowing 2 people with the same nick, and how to make your irc client positively identify you ... and we reach this idea:

<aquanight> I kinda wish you could /whois someone who's on ssl and see their SSL cert public key
<aquanight> so that you can know beyond a reasonable doubt who that person is

Thats at like 4pm, I'm bored, and I think "Can't be that hard ..."

It's now 10.30pm, here's a patch to do exactly that (well kinda).

On whoising someone using ssl with a client cert, you get this sent as swhois:

Certificate Information: /C=UK/ST=Manchester/L=Wigan/O=The-Cell/OU=Admin/CN=Nazzy
Certificate Hash: d3c0cc6ec2d1c35cc93e3282adf9ea169b95a81f

The Info is obviously the fields put in to your ssl cert.
The Hash is a sha1 has of your public key... to get this hash (to publish some place only you could put it, to aid verification) you can do like this:

$ grep -v -- ----- Nazzy.pem | openssl enc -base64 -d | sha1sum
d3c0cc6ec2d1c35cc93e3282adf9ea169b95a81f -

(Strips the opening and closing block lines, decodes the base64 and hashes it)

I didn't think til after I'd finish that I'd patched this against a clean copy of 3.2.5 and not cvs, sorry about that :/
Attached Files
cert-swhois.patch.txt (4,657 bytes)
3rd party modules

Activities

Nazzy

2006-09-11 07:56

reporter   ~0012378

Bleh, never make assumptions ... in order to get this patch not to crash miserably when used on a network, m_whois.c needs to have

if (acptr->cert)

replaced with

if (MyClient(acptr) && (acptr->cert))

codemastr

2006-09-24 15:06

reporter   ~0012427

I haven't looked at your patch, but I'd switch to RIPEMD-160 as the hashing method. I'm far from a hashing expert, but it's supposedly faster and more secure.

Stealth

2006-09-24 16:11

reporter   ~0012428

I think placeing plain text cert info in the whois might release more information than a user may want. I think just the hash of the cert is enough to get what you want

codemastr

2006-09-24 19:39

reporter   ~0012430

[quote]I think placeing plain text cert info in the whois might release more information than a user may want.[/quote]

You may be right, but after all, it is a *public* key. If you didn't want it public, you probably wouldn't put it in there.

Stealth

2006-09-24 22:53

reporter   ~0012431

A whois opens this information up to whoever does a whois on you, which could be anyone. If it is not in the whois, it is generally only shared with servers (at least in my case)

stskeeps

2007-04-24 03:21

reporter   ~0013643

Please write proper patch that applies towards 3.3-alpha0 and has a define/conf option wether you want this functionality or not. Perhaps even a user mode?

stskeeps

2007-06-11 15:43

reporter   ~0014319

Please resubmit for 3.3, removed from bug queue until then due to lack of feedback.

Issue History

Date Modified Username Field Change
2006-08-25 16:33 Nazzy New Issue
2006-08-25 16:33 Nazzy File Added: cert-swhois.patch.txt
2006-09-11 07:56 Nazzy Note Added: 0012378
2006-09-24 15:06 codemastr Note Added: 0012427
2006-09-24 16:11 Stealth Note Added: 0012428
2006-09-24 19:39 codemastr Note Added: 0012430
2006-09-24 22:53 Stealth Note Added: 0012431
2007-04-19 04:32 stskeeps Status new => acknowledged
2007-04-19 18:56 stskeeps Status acknowledged => confirmed
2007-04-24 03:21 stskeeps Note Added: 0013643
2007-04-24 03:21 stskeeps Status confirmed => feedback
2007-06-11 15:43 stskeeps Status feedback => closed
2007-06-11 15:43 stskeeps Note Added: 0014319
2007-06-11 15:44 stskeeps Resolution open => suspended