Re: [Acme] Well Known CA->client poll on port 80/443 in http-acme

Ilari Liusvaara <ilariliusvaara@welho.com> Sun, 15 January 2017 14:29 UTC

Return-Path: <ilariliusvaara@welho.com>
X-Original-To: acme@ietfa.amsl.com
Delivered-To: acme@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 31F6412959D for <acme@ietfa.amsl.com>; Sun, 15 Jan 2017 06:29:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.099
X-Spam-Level:
X-Spam-Status: No, score=-5.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-3.199] autolearn=ham autolearn_force=no
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 W47XBaTcT9gK for <acme@ietfa.amsl.com>; Sun, 15 Jan 2017 06:29:33 -0800 (PST)
Received: from welho-filter3.welho.com (welho-filter3.welho.com [83.102.41.25]) by ietfa.amsl.com (Postfix) with ESMTP id B77D412957F for <acme@ietf.org>; Sun, 15 Jan 2017 06:29:33 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by welho-filter3.welho.com (Postfix) with ESMTP id 417FC15C67; Sun, 15 Jan 2017 16:29:32 +0200 (EET)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from welho-smtp1.welho.com ([IPv6:::ffff:83.102.41.84]) by localhost (welho-filter3.welho.com [::ffff:83.102.41.25]) (amavisd-new, port 10024) with ESMTP id mmfl0x2YU6Vk; Sun, 15 Jan 2017 16:29:32 +0200 (EET)
Received: from LK-Perkele-V2 (87-92-51-204.bb.dnainternet.fi [87.92.51.204]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by welho-smtp1.welho.com (Postfix) with ESMTPSA id E680A289; Sun, 15 Jan 2017 16:29:31 +0200 (EET)
Date: Sun, 15 Jan 2017 16:29:31 +0200
From: Ilari Liusvaara <ilariliusvaara@welho.com>
To: Dirk-Willem van Gulik <dirkx@webweaving.org>
Message-ID: <20170115142931.GB26429@LK-Perkele-V2.elisa-laajakaista.fi>
References: <9099A621-D460-47B6-9172-0984CF3A0DC8@webweaving.org> <20170115140330.GA26429@LK-Perkele-V2.elisa-laajakaista.fi> <6AEBC4C9-FA1B-4672-AE58-15C165722B30@webweaving.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <6AEBC4C9-FA1B-4672-AE58-15C165722B30@webweaving.org>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: ilariliusvaara@welho.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/acme/L3qWOoSuskmgOxnhZRVm7SJbYHI>
Cc: acme@ietf.org
Subject: Re: [Acme] Well Known CA->client poll on port 80/443 in http-acme
X-BeenThere: acme@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Automated Certificate Management Environment <acme.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/acme>, <mailto:acme-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/acme/>
List-Post: <mailto:acme@ietf.org>
List-Help: <mailto:acme-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/acme>, <mailto:acme-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 15 Jan 2017 14:29:36 -0000

On Sun, Jan 15, 2017 at 03:11:32PM +0100, Dirk-Willem van Gulik wrote:
> 
> > On 15 Jan 2017, at 15:03, Ilari Liusvaara <ilariliusvaara@welho.com> wrote:
> > 
> > On Sun, Jan 15, 2017 at 02:50:37PM +0100, Dirk-Willem van Gulik wrote:
> >> ….
> > 
> > That's not a new version. It is pre-WG version, published about 1.5
> > years ago.
> 
> Ok - so I’ll ignore git - and will take the IETF latest as leading.

There actually is another git repo (ietf-wg-acme/acme) that contains the
WG draft work. That one is a bit newer than ietf-04 (but shouldn't have
significant changes).
 
> > Currently in acme spec, the only ways to do verification without port
> > 80 are TLS-SNI-02 (uses port 443) and DNS-01 (no connections at all,
> > relies on DNS exclusively).
> 
> Ok - and is there any reason why allowing one to specify the port
> would not be an option/bad idea ?

The list of ports public CAs can use is pretty short (5 ports in fact).

> I am looking at the typical old school unix case - i.e. apache — where
> one starts up as root and quickly chroots/setuid()s - and where the
> servers are commonly deployed on port > 1024 by end users.

There actually are restrictions on what ports public CAs can use for
authentication. These are:

- 80 (HTTP)
- 443 (HTTPS)
- 115 (SFTP; no, not _that_ SFTP [1])
- 25 (SMTP)
- 22 (SSH)

These limits are exactly so that unprivileged users don't bind
daemons to the ports and use those to obtain certificates (the
certificates are valid for all ports).


[1] This is likely a mistake (but it is still allowed). The "SFTP"
is not _Secure_ File Transfer Protocol (shares port 22 with SSH) but
instead _Simple_ File Transfer Protocol... Described in three-digit-
number historic-status RFC, from the 80s...




-Ilari