Re: [dane] Start of WGLC for draft-ietf-dane-openpgpkey - *please* review.

Paul Wouters <paul@nohats.ca> Sat, 21 February 2015 00:46 UTC

Return-Path: <paul@nohats.ca>
X-Original-To: dane@ietfa.amsl.com
Delivered-To: dane@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DB1431A066C for <dane@ietfa.amsl.com>; Fri, 20 Feb 2015 16:46:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.01
X-Spam-Level:
X-Spam-Status: No, score=-2.01 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UYtl6jbHvty1 for <dane@ietfa.amsl.com>; Fri, 20 Feb 2015 16:45:59 -0800 (PST)
Received: from mx.nohats.ca (mx.nohats.ca [193.110.157.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6075C1A049A for <dane@ietf.org>; Fri, 20 Feb 2015 16:45:59 -0800 (PST)
Received: from localhost (localhost [IPv6:::1]) by mx.nohats.ca (Postfix) with ESMTP id 3kprYc3kx4zDXB for <dane@ietf.org>; Sat, 21 Feb 2015 01:45:56 +0100 (CET)
Authentication-Results: mx.nohats.ca; dkim=pass reason="1024-bit key; unprotected key" header.d=nohats.ca header.i=@nohats.ca header.b=GwwS0dMB; dkim-adsp=pass
X-Virus-Scanned: amavisd-new at mx.nohats.ca
Received: from mx.nohats.ca ([IPv6:::1]) by localhost (mx.nohats.ca [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id IAj_Q7RmQ-_i for <dane@ietf.org>; Sat, 21 Feb 2015 01:45:55 +0100 (CET)
Received: from bofh.nohats.ca (206-248-139-105.dsl.teksavvy.com [206.248.139.105]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx.nohats.ca (Postfix) with ESMTPS for <dane@ietf.org>; Sat, 21 Feb 2015 01:45:55 +0100 (CET)
Received: from [10.0.0.55] (c-24-4-36-84.hsd1.ca.comcast.net [24.4.36.84]) by bofh.nohats.ca (Postfix) with ESMTPSA id 0B91482A1E for <dane@ietf.org>; Fri, 20 Feb 2015 19:45:54 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nohats.ca; s=default; t=1424479554; bh=k50DSWC3K2T60Jjlnu+vB2HdHv9WA+fFhQrekefoOM8=; h=Subject:References:From:In-Reply-To:Date:To; b=GwwS0dMB59jtCM75vyJ2YGe4RhjSaEJsxjpw7Pv22XCp1foWfpDwWuJeVWVovWei+ u0/S9pbm9NZM40SI01kYYeR4VDwXBS+pOuJ3EH50u2q2ycpMQPhOUMKEMgSL1CKOYN che116yjC8xU0ORubtgljEkYGqSECbJa68cyynR4=
References: <CAHw9_iJPuG23Aok7V_wcAMirua_DPDLHy01tnd+DaUqEeK3NZA@mail.gmail.com> <m3zj88872f.fsf@carbon.jhcloos.org> <20150221003439.GM1260@mournblade.imrryr.org>
From: Paul Wouters <paul@nohats.ca>
Content-Type: text/plain; charset="us-ascii"
X-Mailer: iPhone Mail (12B466)
In-Reply-To: <20150221003439.GM1260@mournblade.imrryr.org>
Message-Id: <46D64B78-4EBA-48C1-BEB1-27E3B9386DCA@nohats.ca>
Date: Fri, 20 Feb 2015 16:45:52 -0800
To: "dane@ietf.org" <dane@ietf.org>
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0 (1.0)
Archived-At: <http://mailarchive.ietf.org/arch/msg/dane/-9OMtf4VPMRgQDDHuHng5dGLTjw>
Subject: Re: [dane] Start of WGLC for draft-ietf-dane-openpgpkey - *please* review.
X-BeenThere: dane@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DNS-based Authentication of Named Entities <dane.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dane>, <mailto:dane-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/dane/>
List-Post: <mailto:dane@ietf.org>
List-Help: <mailto:dane-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dane>, <mailto:dane-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 21 Feb 2015 00:46:02 -0000

What works for me is:

$ sudo yum | apt-get install hash-slinger
$ openpgpkey --fetch pwouters@fedoraproject.org

:)

Sent from my iPhone

> On Feb 20, 2015, at 16:34, Viktor Dukhovni <ietf-dane@dukhovni.org> wrote:
> 
> On Fri, Feb 20, 2015 at 07:03:04PM -0500, James Cloos wrote:
> 
>>>>>>> "WK" == Warren Kumari <warren@kumari.net> writes:
>> 
>> WK> Also, a cute trick: dig type61 $(echo -n pwouters| sha224sum | sed "s/
>> WK> ..$//")._openpgpkey.fedoraproject.org |grep TYPE61 | sed
>> WK> "s/^.*TYPE61.*\\\#[0-9]* //" | grep -v ";" | sed "s/ //g" | xxd -r -p
>> WK> | gpg --import --dry-run
>> 
>> FWIW, that does not work here.
> 
> What works for me is:
> 
>    $ dig +short -t type61 $(
>    printf "%s._openpgpkey.fedoraproject.org" $(
>        printf "%s" pwouters |
>        openssl dgst -sha224  -binary |
>        hexdump -ve '/1 "%02x"'
>        )
>    ) |
>    perl -ane '
>        ($escape_sharp, $len) = splice(@F, 0, 2);
>        next if ($escape_sharp ne q{\#}); 
>        ($rdata = join("", @F)) =~ s/(..)/chr(hex($1))/eg;
>        next if (length($rdata) != $len);
>        print $rdata;
>        last;
>        ' |
>    gpg --import --dry-run --verbose
>    gpg: pub  4096R/E0FD94D2 2014-12-11  Paul Wouters <paul@nohats.ca>
>    gpg: using classic trust model
>    gpg: key E0FD94D2: public key "[User ID not found]" imported
>    gpg: Total number processed: 1
>    gpg:               imported: 1  (RSA: 1)
> 
> Of course this ignores the DNSSEC validation status.  A better
> approach is to do it all in Perl with Net::DNS and either trusted
> (AD-bit) local resolver, or DNSSEC validation support in Net::DNS.
> 
> Python with the getdns api is another attractive option.
> 
> -- 
>    Viktor.
> 
> _______________________________________________
> dane mailing list
> dane@ietf.org
> https://www.ietf.org/mailman/listinfo/dane