From patchwork Mon Oct 3 07:12:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 611966 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp949465pvb; Mon, 3 Oct 2022 00:12:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5qTae8y66G/PEV6f2WqXtuE0efHuogiyUpRt623kQ0sjy5s1e1ZJGdM1JKvQIXvazyQ9Tq X-Received: by 2002:a17:907:e8c:b0:78a:7b6f:fe7 with SMTP id ho12-20020a1709070e8c00b0078a7b6f0fe7mr4421781ejc.54.1664781138424; Mon, 03 Oct 2022 00:12:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664781138; cv=none; d=google.com; s=arc-20160816; b=NZAJTVzK+9e4U43lyl0Kzi4sepzhpEL82MCADeY9U94JJKw51JQYfEDFPcVVrZqTDw P7g5GTxC4m3Rhv6xxmypB+R4LnyABbSHNooVahcZMKnK0vfxSPDiWSTynz21DhdgsbLy 0vdUhgU+/9+9g7+DKOolQ7DA1LgjzZfti2jwMmSnPmU1fu+kcK2vzWK9TPBazA+ma5Mc 778AWLBzgDtp5Ex96BuAjgWzmF3px2wZem593ww/TBB5ECD1pAdDFkNDIRLVzVUaZrPC 7E7besT/6qqYHQKORWCJEllz4DkWumFjDt1IGzUVo0DL+Y7w9PcNi3QlwVQLtgB2XCQW 7P4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=DLaYF5KmAQChX1n/4k8e7Yjsjhwx4azLILIHRDbRtt8=; b=g7OeomglqKJhlhSTg0Af4uVN8Ly4Ek9VBYX4opjFuPVVM76IsoUD5dOB/v7ozrxap0 V0pdLBACtKYZr0rrpTa+E1DkSPsGqQ10/4+BlQESZlWev9tkiGsJBwGanjUsI1ItXdCi kvs15mSJG40LrAFj/BeQ7//IKUMtw5Jiqis7pS46bH6EXfINAJT/z5yFjtNcVnvy/lb6 /ZWZ57YYWwA52vyFIa2wq/wAmoLiRRrVk0mK8A6sB04RAabpoyVtn6aosOcDxQt8q7d8 QgqeZNy+YYNHZ1OF5ZQ30h5tqoRCF+KYHg8+wEe5YOc5/jQKKxQYNmP9OjfvBYb8R3FX 1maQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DpQcFnO1; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id ga20-20020a1709070c1400b0078c5d28e27esi736212ejc.604.2022.10.03.00.12.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Oct 2022 00:12:18 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DpQcFnO1; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EDEFB84DB5; Mon, 3 Oct 2022 09:12:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="DpQcFnO1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B190384DC5; Mon, 3 Oct 2022 09:12:11 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E550684915 for ; Mon, 3 Oct 2022 09:12:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masahisa.kojima@linaro.org Received: by mail-pf1-x433.google.com with SMTP id d10so9451340pfh.6 for ; Mon, 03 Oct 2022 00:12:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=DLaYF5KmAQChX1n/4k8e7Yjsjhwx4azLILIHRDbRtt8=; b=DpQcFnO18yADxJHaEi6QbwX/lypuM9eF+m7CJY+P3m63QpOqWFgCdvfKzWI3vl+ZMA KugDgKHMhv8N1C8NlQFTOhd8SVtPhsds2WMKN/JnKTjXy1MeO6cnj611x7anYi+lAzb7 ejKHt28MSXbEVv9uVcyRZCFn4G2p3o/i3n1aKzm0gv98S9NvGjraf0oowXhOA6dsqJuo Kdoyygha/dtrCAt/2wcOMiyXOyjg8jVRiy23V+zu3NWvY8AADbxe9H3NaDJtr01HOJH1 rxNWhjbg+qiV1W/eaG8flt5uFVBUZzuD7UDJs5jcqZvk8i5LXxoLhQVv4olggM4wepVM qqBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=DLaYF5KmAQChX1n/4k8e7Yjsjhwx4azLILIHRDbRtt8=; b=cCDJ1bQOSydA2wT30tjXqxGX3ytsyvsEylkiNxLz8Lo8kOoRZ+20cLQTSDQNPOKaM4 GkjQLsKBEFbGG+1MYPc0LXLGmqIIBWFvqNuU9A2NZCPMiPPIoRsEzK3Lb58WsGpDsZFc A+qmrrl2JrCGTSPwHtEeX2fsZ49U1hGud91nOL/yH/dnrgbGOAVWOYFWKgjG722UfxKz OlZ0kBhQegFjpy5Th+Ck/wHPZW1GIvd7n/da60scw/wvxWTtFvwpzVLyVKtXOq1i6bwk 4T46MoA9bZfTtIWWksnnSN/FtWrCgJbzp6Hy7xdhGVhndv7P9jcVAxJa6pyNqy0Qch2f oQzg== X-Gm-Message-State: ACrzQf2xpSl+5mcB+s/DibbF4mdhdA/Wn/73MHFYcVd3waZqp1KFzAgo qKNxye5oR/pBKrrF91lXwCFTcaEOugd95Q== X-Received: by 2002:a63:500d:0:b0:439:dcdd:87af with SMTP id e13-20020a63500d000000b00439dcdd87afmr18007645pgb.231.1664781126663; Mon, 03 Oct 2022 00:12:06 -0700 (PDT) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id 18-20020a630b12000000b00434d9ba7817sm5930568pgl.30.2022.10.03.00.12.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Oct 2022 00:12:06 -0700 (PDT) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Takahiro Akashi , Masahisa Kojima , Heinrich Schuchardt , Ilias Apalodimas Subject: [PATCH] test/py: efi_secboot: Remove unnecessary cert-to-efi-hash-list option Date: Mon, 3 Oct 2022 16:12:15 +0900 Message-Id: <20221003071215.21883-1-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean 'cert-to-efi-hash-list -t 0' does not work as expected, it produces indeterminate timestamp. $ cert-to-efi-hash-list -t 0 -s 256 db.crt dbx_hash.crl TimeOfRevocation is 0-113-0 00:00:255 If we need the CRL revoked for all the time, just don't specify '-t' option. $ cert-to-efi-hash-list -s 256 db.crt dbx_hash.crl TimeOfRevocation is 0-0-0 00:00:00 Signed-off-by: Masahisa Kojima --- test/py/tests/test_efi_secboot/conftest.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/py/tests/test_efi_secboot/conftest.py b/test/py/tests/test_efi_secboot/conftest.py index db6b8d301f..f2f914f617 100644 --- a/test/py/tests/test_efi_secboot/conftest.py +++ b/test/py/tests/test_efi_secboot/conftest.py @@ -77,17 +77,17 @@ def efi_boot_env(request, u_boot_config): % (mnt_point, EFITOOLS_PATH, GUID, EFITOOLS_PATH), shell=True) # dbx_hash (digest of TEST_db certificate) - check_call('cd %s; %scert-to-efi-hash-list -g %s -t 0 -s 256 db.crt dbx_hash.crl; %ssign-efi-sig-list -t "2020-04-05" -c KEK.crt -k KEK.key dbx dbx_hash.crl dbx_hash.auth' + check_call('cd %s; %scert-to-efi-hash-list -g %s -s 256 db.crt dbx_hash.crl; %ssign-efi-sig-list -t "2020-04-05" -c KEK.crt -k KEK.key dbx dbx_hash.crl dbx_hash.auth' % (mnt_point, EFITOOLS_PATH, GUID, EFITOOLS_PATH), shell=True) - check_call('cd %s; %scert-to-efi-hash-list -g %s -t 0 -s 384 db.crt dbx_hash384.crl; %ssign-efi-sig-list -t "2020-04-05" -c KEK.crt -k KEK.key dbx dbx_hash384.crl dbx_hash384.auth' + check_call('cd %s; %scert-to-efi-hash-list -g %s -s 384 db.crt dbx_hash384.crl; %ssign-efi-sig-list -t "2020-04-05" -c KEK.crt -k KEK.key dbx dbx_hash384.crl dbx_hash384.auth' % (mnt_point, EFITOOLS_PATH, GUID, EFITOOLS_PATH), shell=True) - check_call('cd %s; %scert-to-efi-hash-list -g %s -t 0 -s 512 db.crt dbx_hash512.crl; %ssign-efi-sig-list -t "2020-04-05" -c KEK.crt -k KEK.key dbx dbx_hash512.crl dbx_hash512.auth' + check_call('cd %s; %scert-to-efi-hash-list -g %s -s 512 db.crt dbx_hash512.crl; %ssign-efi-sig-list -t "2020-04-05" -c KEK.crt -k KEK.key dbx dbx_hash512.crl dbx_hash512.auth' % (mnt_point, EFITOOLS_PATH, GUID, EFITOOLS_PATH), shell=True) # dbx_hash1 (digest of TEST_db1 certificate) - check_call('cd %s; %scert-to-efi-hash-list -g %s -t 0 -s 256 db1.crt dbx_hash1.crl; %ssign-efi-sig-list -t "2020-04-06" -c KEK.crt -k KEK.key dbx dbx_hash1.crl dbx_hash1.auth' + check_call('cd %s; %scert-to-efi-hash-list -g %s -s 256 db1.crt dbx_hash1.crl; %ssign-efi-sig-list -t "2020-04-06" -c KEK.crt -k KEK.key dbx dbx_hash1.crl dbx_hash1.auth' % (mnt_point, EFITOOLS_PATH, GUID, EFITOOLS_PATH), shell=True) # dbx_db (with TEST_db certificate)