Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5393085imm; Tue, 18 Sep 2018 08:51:13 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZwT2WTDuFts5k+idg/MB2Uk2rbzn0HcIAmI2ULulBBIxaBtc4xHOHBKssBD/b7XKc3a23A X-Received: by 2002:a17:902:27a8:: with SMTP id d37-v6mr5043107plb.290.1537285873585; Tue, 18 Sep 2018 08:51:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537285873; cv=none; d=google.com; s=arc-20160816; b=d8UJUF0vyWnoAKap3S3WImUdNL/xW02r6aj/SnVXnV4Q3sqd+Xtt1wUClK6xiAYjk6 EIjggnpA001Gr/+uovPuYkcS7IkB3x2RGufLLb5sQw/K85JeORG+gw+83poj3ObULIBH WJ0FJ4/LEpwvwKqe1fVbASooYRY3XoM8Op9Vqm0jFiLED/oZPTq1G39FXApaN6Pjr4Jq szh7V1wGxL/tgH1ojPVx2d0J2RK92ZBz5Mf+7anazguvjucTo5xcgZYHz5+xdnaYOIkR CRWMfotk3s7z9TPtggWUhkACXC9WPFoAVVt3OJDYk4PmlzsIK9WAy/X8CL9uYkJhQIdj FpGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization; bh=Hdmp+Z0roGFVXqRdPjXG2hWUlkEkyb3+GKj2cwPG97A=; b=FZcFUfIWMxPgcHjbNkqE5s2bOHWyGBcDtLu4pO9McyAIPv3e7L1HtfD6wj9z/7Xd8c 0+P42T2hGlQElpUa5E+AKa/mUiYG5BjQU0z1rxrrkA5dW2P87M0DghrwzJ0GCYqdkSAJ D5cnGBO9OPBd6uYi3dxZcXQKixCmHDhZBadJWip/Xstn9B5zp3oUPe+b8kMsb569X/IH hpqWJ5Qk83aimxGexwrJIw6hFgfL/7MuVaNjMa4dcTc/6oIHV7ALUBaGV8iSqY8KgQ1y IZ6qJ0/whs5h9YUIFP4eQnjm075Hw4yI/EKpBjiow2UUGn73U6FUsa9XSaGgBqycv2UW uPNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id go1si19376335plb.266.2018.09.18.08.50.57; Tue, 18 Sep 2018 08:51:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730033AbeIRVXq (ORCPT + 99 others); Tue, 18 Sep 2018 17:23:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36370 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729249AbeIRVXq (ORCPT ); Tue, 18 Sep 2018 17:23:46 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 57255308FF2F; Tue, 18 Sep 2018 15:50:36 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-123-84.rdu2.redhat.com [10.10.123.84]) by smtp.corp.redhat.com (Postfix) with ESMTP id 14EF95C6C1; Tue, 18 Sep 2018 15:50:33 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <153618445730.7946.10001472635835806478.stgit@warthog.procyon.org.uk> <1537253993.20009.62.camel@infradead.org> To: Denis Kenzior Cc: dhowells@redhat.com, David Woodhouse , jmorris@namei.org, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/22] KEYS: Support TPM-wrapped key and crypto ops MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <14066.1537285833.1@warthog.procyon.org.uk> Date: Tue, 18 Sep 2018 16:50:33 +0100 Message-ID: <14067.1537285833@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Tue, 18 Sep 2018 15:50:36 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Denis Kenzior wrote: > openssl asn1parse -inform pem -in /tmp/privkey.2048.tpm -noout \ > -out /tmp/privkey.2048.der You can use "... -out - | ..." instead. David