help-gnutls
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gnutls] Re: Semantics of `gnutls_openpgp_key_check_hostname ()


From: Daniel Kahn Gillmor
Subject: Re: [Help-gnutls] Re: Semantics of `gnutls_openpgp_key_check_hostname ()'
Date: Wed, 11 Apr 2007 11:55:56 -0400
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed 2007-04-11 09:30:11 -0400, Simon Josefsson wrote:

> address@hidden (Ludovic Courtès) writes:
>
>> if one of the key's names matches _exactly_ HOSTNAME.  Since key
>> names are not supposed to be host names but rather RFC822 strings,
>> this is of little use.
>>
>> Perhaps it should rather check whether the email part of one of the key
>> names matches HOSTNAME?
>
> I'm not sure... it is pretty important that name checks are well
> defined.  As I recall, there are no clear requirements on what key
> names should be in the standard, or is there?

RFC 2440 [0] says:

5.11. User ID Packet (Tag 13)

   A User ID packet consists of data that is intended to represent the
   name and email address of the key holder.  By convention, it includes
   an RFC 822 mail name, but there are no restrictions on its content.
   The packet length in the header specifies the length of the user id.
   If it is text, it is encoded in UTF-8.

I think this is the relevant section to what's under discussion here.
If there's a more relevant section, please point it out!

So i think it'd be OK to put whatever you want there, though there are
certainly circumstances where i wouldn't want to sign a key/uid
binding if the uid were just the hostname.

For example, if foo.example.com runs an LDAP service as a
non-privileged user (STARTTLS-enabled, of course), i'd prefer that the
uid on the key used was something like

 ldap://foo.example.com/

and not just "foo.example.com".  Otherwise, a compromised LDAP service
could masquerade as other services on the same machine.

I'm not sure that a URI is the right thing to put there, but some
indication of the service in particular is probably worth considering.

I haven't read the documentation for
gnutls_openpgp_key_check_hostname() yet, though.

           --dkg

[0] http://www.ietf.org/rfc/rfc2440.txt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>

iD8DBQFGHQUBiXTlFKVLY2URApMjAJkBwfPiv9A014e3Q3+qT4ZLMC5dRACgw2L9
KSfX9IHxmDYG4aaM2dkuByE=
=KdfG
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]