Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97206 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70246 invoked from network); 27 Nov 2016 13:09:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Nov 2016 13:09:25 -0000 Authentication-Results: pb1.pair.com header.from=jakub.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=jakub.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.176 as permitted sender) X-PHP-List-Original-Sender: jakub.php@gmail.com X-Host-Fingerprint: 209.85.217.176 mail-ua0-f176.google.com Received: from [209.85.217.176] ([209.85.217.176:36689] helo=mail-ua0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1C/76-21589-40BDA385 for ; Sun, 27 Nov 2016 08:09:24 -0500 Received: by mail-ua0-f176.google.com with SMTP id b35so118060777uaa.3 for ; Sun, 27 Nov 2016 05:09:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=XYz3Lju9xUK+BuXknYj08UvAf6+fmG50cZaQH2AF38U=; b=VupTFD6kBgHwja/e8ChB36+LzZHxUKkI1HzWKBCQEKwjHljlNSribF/Cfk6bGADY57 Lsh8KIXTcxYpy2704XsgoB8sPyimdSXAMQpCcs3Y699xbYhtmgicEnTewgN9mL5csnyF xh71s4gUku6jHrzVDqkv3Yhqzfs0BzVvaRv0UCJc84vIspigKKEbOAWe6JtlTCGzYouK 3RlRW1U2C25470K5jF9VqeX1b6OWK3ZfQrjue77cScqT4opA4dkh+9ylPOgtRIBqlB97 nVjWYHh9Ih7qI4omZfSggTS7eNd9vaPBGH8EPzZlhtnU21ErZEuRIwEiiLdov5ukBgTZ jlfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=XYz3Lju9xUK+BuXknYj08UvAf6+fmG50cZaQH2AF38U=; b=Cn5XSueWYyaApnrcL7ReEMdNK4PXgZy/rdLgmLZLmEn8kGJzT8XbRdb7lUatCl4KHJ mqkhdAUxDSmPBVz3KkEwaUmfvLCca/bQlH51Qr2qyIRIb/HpQJMJ9dBwQDdzN2b6fipE d0YZKnqkn+rPsbpuvHk3eG7UoIkY5gN2dHSwsUTjDS6759ONZUB+sHEJXYQrYJjLn80X 4sHlRoUwkRT2x+kefYweIvsld25E2MmbqK1GspTHgGa5yzkRK/Frfisi7kOhc5kR3M5O QyPUMFFXcI1NwEXD6eLWFql0Jk5j+KUjKZTzP+r1BjYwSrb9TX4GCNor5Q+Wsuaaf4fw bSzw== X-Gm-Message-State: AKaTC01yIpaGi4Vw6W3vEBnVTznCClfjz3gJ9oqB+O8Nlp/rmf0nhyQ5JQdYCZtFQmrJId+z1fLe1/d0bn0DbA== X-Received: by 10.176.81.56 with SMTP id e53mr13090881uaa.100.1480252162362; Sun, 27 Nov 2016 05:09:22 -0800 (PST) MIME-Version: 1.0 Sender: jakub.php@gmail.com Received: by 10.31.146.74 with HTTP; Sun, 27 Nov 2016 05:09:21 -0800 (PST) In-Reply-To: References: Date: Sun, 27 Nov 2016 13:09:21 +0000 X-Google-Sender-Auth: JUWGWjROLo2-tHPcrphACQCaIzc Message-ID: To: Niklas Keller Cc: PHP Internals Content-Type: multipart/alternative; boundary=94eb2c190c5450d374054248100c Subject: Re: [PHP-DEV] [RFC] Distrust SHA-1 Certificates From: bukka@php.net (Jakub Zelenka) --94eb2c190c5450d374054248100c Content-Type: text/plain; charset=UTF-8 On Sun, Nov 27, 2016 at 1:06 PM, Jakub Zelenka wrote: > > > On Sat, Nov 26, 2016 at 3:49 PM, Niklas Keller wrote: > >> Morning Internals, >> >> I plan to distrust SHA-1 certificates by default in PHP 7.2. All major >> browsers will no longer trust SHA-1 certificates starting already >> 2017-01-01. >> >> Unfortunately, PHP doesn't even provide a way yet to limit the accepted >> algorithms for certificates. The RFC fixes that and introduces new >> defaults >> for PHP 7.2. The "signature_algorithms" context option will also be >> backported to PHP 5.6, which is only supported until the end of 2016 with >> regular releases, but after that there will be two more years of >> security-only updates. Therefore I'd like to get this done before the end >> of 2016. >> >> Currently the RFC aims for BC and doesn't restrict the algorithms on older >> versions. As all major browsers start distrusting those certificates on >> 2017-01-01 I'm not sure whether that's the correct choice. I'd like to go >> secure-by-default there and disable SHA-1 also on older versions. People >> which really need longer can always opt-out and add the needed algorithms >> again. Unfortunately, we didn't announce any plans regarding SHA-1 yet, so >> this might be a bit last-minute. >> >> You can read the full RFC in the wiki: >> https://wiki.php.net/rfc/distrust-sha1-certificates >> >> > I think you should change the format to match the one supported by OpenSSL > [1] which is also simpler. > > In general I'm not a big fan of such defaults especially when new values > can be added later (e.g. EdDSA that is specified in TLS 1.3) so we have to > keep it up to date which was kind of issue in the past. However I see the > point that we should make it easier for users to have it secure by default > so it's probably a good choice. It's not actually just about SHA > > Ah sent before I finished it. :) I wanted to say that it's not just about SHA-1 but also MD5 that I think we might still support but would have to double check that... --94eb2c190c5450d374054248100c--