Re: [lamps] On the need for standardization of software-based interoperable private keys [was: Re: draft-ietf-lamps-samples: PKCS12 expertise needed (including objects for comparison)]

David Woodhouse <dwmw2@infradead.org> Thu, 05 August 2021 19:16 UTC

Return-Path: <BATV+90fb9a4da2f31b619ba7+6556+infradead.org+dwmw2@bombadil.srs.infradead.org>
X-Original-To: spasm@ietfa.amsl.com
Delivered-To: spasm@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 633973A1F2A; Thu, 5 Aug 2021 12:16:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=infradead.org
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 Ifykz3NrUnR8; Thu, 5 Aug 2021 12:16:38 -0700 (PDT)
Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1C9FA3A1F24; Thu, 5 Aug 2021 12:16:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Mime-Version:Content-Type:References: In-Reply-To:Date:To:From:Subject:Message-ID:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description; bh=34VdQwy9o5f7w7dNWiVe0Bt+0wzxUnugvnfiS8uiZlM=; b=oetstD8Hhuz7GDiZkl6c9wzoRT 1b4bF3LZdVaxN5Pa1Qb2BOPbST8uz+syIeInUrtRDsgpXNqQvoeV2gO5y1QB/lnkjRS2ArtRmX16c NX2G3ewIly71OtC8FKNMiVs+lyVILySCrNRBzHcXOpAO8YZGu7psW8J8RbsuU9IEgj83Xd4mx7Fwu z0WHUP6/VY3CXfaedWkNLZovg8Ynlga4xwRkJgHEk/EkBMP/OgqfGWH4jKCD0cbDOXDwGwfvKTigU UtMyVzCESdhRWY6vCDK2sC8z95b5UTTrrSWAV1c9s1iydByAgqBNmnr18xOXiFj0+b7ncI/z684L7 ilYhkI+w==;
Received: from 54-240-197-232.amazon.com ([54.240.197.232] helo=freeip.amazon.com) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBir7-00Ae2h-12; Thu, 05 Aug 2021 19:16:37 +0000
Message-ID: <f76ed7b6fe0d6f92ba361d520416cba98d5e03c4.camel@infradead.org>
From: David Woodhouse <dwmw2@infradead.org>
To: Michael Richardson <mcr+ietf@sandelman.ca>, "Salz, Rich" <rsalz=40akamai.com@dmarc.ietf.org>, "spasm@ietf.org" <spasm@ietf.org>
Date: Thu, 05 Aug 2021 20:16:34 +0100
In-Reply-To: <10375.1628180828@localhost>
References: <87czr0ww0d.fsf@fifthhorseman.net> <FF939B28-528B-47F9-9C0C-6585D1B02FBE@vigilsec.com> <87mtq3ukk0.fsf@fifthhorseman.net> <CAErg=HHQMZ1jk+bVxA=MzVvW+9ucie7bu-N6O8Asnp0V8Rf9Bg@mail.gmail.com> <30546.1627850836@localhost> <CAErg=HHKL-E5yT0UnPKcLfMQU41iDg7GGgjsSXs3eRg8daJRkg@mail.gmail.com> <87wnp347iu.fsf@fifthhorseman.net> <1388.1627996026@localhost> <87pmuu42hf.fsf@fifthhorseman.net> <20862.1628113377@localhost> <656985A5-BED4-4BA8-9233-B3C93966016C@ll.mit.edu> <877dh03x35.fsf@fifthhorseman.net> <69d8d53b-d55f-bbe4-076b-3c9db12a9ba9@sandelman.ca> <05F066A5-3977-4A92-A92D-16CB241CFD49@akamai.com> <10375.1628180828@localhost>
Content-Type: multipart/signed; micalg="sha-256"; protocol="application/x-pkcs7-signature"; boundary="=-SXzy/bkyENhPBQjh6ith"
X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2
Mime-Version: 1.0
X-SRS-Rewrite: SMTP reverse-path rewritten from <dwmw2@infradead.org> by bombadil.infradead.org. See http://www.infradead.org/rpr.html
Archived-At: <https://mailarchive.ietf.org/arch/msg/spasm/_C12TWNeublSeIJxfva-lza5GDk>
Subject: Re: [lamps] On the need for standardization of software-based interoperable private keys [was: Re: draft-ietf-lamps-samples: PKCS12 expertise needed (including objects for comparison)]
X-BeenThere: spasm@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "This is a venue for discussion of doing Some Pkix And SMime \(spasm\) work." <spasm.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/spasm>, <mailto:spasm-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/spasm/>
List-Post: <mailto:spasm@ietf.org>
List-Help: <mailto:spasm-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/spasm>, <mailto:spasm-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Aug 2021 19:17:34 -0000

On Thu, 2021-08-05 at 12:27 -0400, Michael Richardson wrote:
> 
> If we can get the legacy guys to open up their code, why fix PKCS12 if they
> could just move to PKCS8? (or PKCS1 or...?)

My recollection is that PKCS#8 doesn't actually specify the character
set to be used for the passphrase fed into PBKDF. Even RFC8018
lamentably just refers to UTF-8 as a "possibility".

This makes it kind of awful for interchange.

At least PKCS#12 mandates a BMPString. Not that software generating
PKCS#12 objects has always got *that* right, mind you...