From nobody Tue May 7 11:53:18 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1626159479; cv=none; d=zohomail.com; s=zohoarc; b=caWhLRGXtCm90SsN3MeiUQQZ1/FFDuragu9H6XIfz50GEJ2bgtCuoHJ7Rawr5xFwr+2/Jap5R6kjuGRosy04/+gnSHuXl7YoxtPY7ltszSE6IlPAlJ4HkSycd7sO4s/IyhqXyRgjMhaiqIEt1Zlu31TOC+QnzsBU7IUoKMZd2dk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1626159479; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=+EyxdLZ3eN8Q462fpJn5wdGAjFUF8maT9iIJCgVocXc=; b=ZGEflX/oODJqnX7ELtbYGYs5/jlXeTDAYsXbZ1y5adtRSUYZYrX/5Y4kVKEd6Hx00lKM8GI/EoVq6Tun09y2Cle9I3ihPSfGbTBFrvYK/7+Hme+fY49QxgdWejQbE1Z29EEuiSXCNPXVwIk8dFEqff0GhwiK36o/0bKtn8JN3F8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1626159479563714.5948407756089; Mon, 12 Jul 2021 23:57:59 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-543-R6XKDx9iNJ21H8eRyChluQ-1; Tue, 13 Jul 2021 02:57:57 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 63ADE100C610; Tue, 13 Jul 2021 06:57:51 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 42B1A60C9D; Tue, 13 Jul 2021 06:57:49 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 9E4314EA29; Tue, 13 Jul 2021 06:57:46 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 16D6vigc020511 for ; Tue, 13 Jul 2021 02:57:45 -0400 Received: by smtp.corp.redhat.com (Postfix) id EFDC35C22A; Tue, 13 Jul 2021 06:57:44 +0000 (UTC) Received: from localhost.localdomain (unknown [10.40.193.133]) by smtp.corp.redhat.com (Postfix) with ESMTP id 73C2C5C1D1 for ; Tue, 13 Jul 2021 06:57:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626159478; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=+EyxdLZ3eN8Q462fpJn5wdGAjFUF8maT9iIJCgVocXc=; b=CTfVnAn+7cip8kVwlKj0p8qcwu4RqKA+KT8b2lWLUhbK3KWPUh116AgBATDB8leSGHkZez G7LXcxlttPtcQTRZbjMe0yfOiECc22NpI3rVHioi97BDWq7YMy3AE1u/ctA9UnO4IM9L3+ FP1QDh5aVl97wNXGg5oaHzsYGAHD2ME= X-MC-Unique: R6XKDx9iNJ21H8eRyChluQ-1 From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH] virnettlshelpers: Update private key Date: Tue, 13 Jul 2021 08:57:30 +0200 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1626159480575100001 Content-Type: text/plain; charset="utf-8" In not so distant past (v6.5.0~3) I've updated the private key we use for virnettls* tests. Back then I was driven by Fedora 33 change which deprecated RSA-1024 which we used back then. I generated an EC-384 key which was fine as it was considered strong enough until RHEL-9 came along. RHEL-9 no longer considers any of EC keys strong enough (for key exchange) and thus we're back to RSA, but this time with 2048 bits. Generated by this cmd line: openssl genpkey -algorithm RSA -out key.pem -pkeyopt rsa_keygen_bits:2048 Signed-off-by: Michal Privoznik Reviewed-by: Peter Krempa --- Honestly, I don't fully understand why EC is not good enough. If I run 'gnutls-cli --list' on a RHEL-9 box and Rawhide box the output is the same except for 'Groups' line where Rawhide contains 'GROUP-GC256B, GROUP-GC512A' on the top of what RHEL-9 has. And I can even find the following: enabled-curve =3D SECP384R1 in /usr/share/crypto-policies/DEFAULT/gnutls.txt on the RHEL-9 box. This all makes me think that something else must be going on, but I have no mental capacity to debug any further. tests/virnettlshelpers.c | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/tests/virnettlshelpers.c b/tests/virnettlshelpers.c index 905e633e60..1886b4b5f5 100644 --- a/tests/virnettlshelpers.c +++ b/tests/virnettlshelpers.c @@ -47,10 +47,32 @@ extern const asn1_static_node pkix_asn1_tab[]; gnutls_x509_privkey_t privkey; # define PRIVATE_KEY \ "-----BEGIN PRIVATE KEY-----\n" \ - "MIG2AgEAMBAGByqGSM49AgEGBSuBBAAiBIGeMIGbAgEBBDD39t6GRLeEmsYjRGR6\n" \ - "iQiIN2S4zXsgLGS/2GloXdG7K+i/3vEJDt9celZ0DfCLcG6hZANiAAQTJIe13jy7\n" \ - "k4KTXMkHQHEJa/asH263JaPL5kTbfRa6tMq3DS3pzWlOj+NHY/9JzthrKD+Ece+g\n" \ - "2g/POHa0gfXRYXGiHTs8mY0AHFqNNmF38eIVGjOqobIi90MkyI3wx4g=3D\n" \ + "MIIEuwIBADANBgkqhkiG9w0BAQEFAASCBKUwggShAgEAAoIBAQCo5oG7tx5EGtHW\n" \ + "ZNHNG8lOei7IEuL6N39/Gkhl7XHXBmb2+Q+iGDI7uhzni/2/A6cUsPMKS4YWn74h\n" \ + "NLDyBuB7Fge5iYooKYqb9FyPWLmkAXGOaLMwxEpp2yZUusVLxZ3USeHtVK6e6sXV\n" \ + "x1hTxuntqPW4kZ7gaDWw27I3CBugiLptxb0M2ENRLyCkLKgyYf3PlnpD1ifupVgO\n" \ + "WNLjkoNgjSTOtnFkYQHm/sk37nrzj7yqzo46CeSGEAopnfQ5UaIv21DLyKQKmZfh\n" \ + "aWbDvQq/hDxL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