From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 926DBAC0E6F for ; Wed, 27 Sep 2023 08:38:40 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=RxQgI3370gM5CjhEm0rN0XL41tPuWZ0wKACkYJYsTSM=; c=relaxed/simple; d=groups.io; h=Date:From:To:Subject:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Disposition; s=20140610; t=1695803919; v=1; b=IjgzGDvsdtEUF74mMP+Xax2MY2oSKX8SsGATRnAVLv9e4iFh22kZyH3Gv7bQoVMQPn+5ZNDv 0cwjwHKcdozFZKR2pX6iWHmpPKZt55qmocsoVDkkcfD4MlBNeEv9YSOmpJ26+/jTtQCAozj2tb5 kn+ecnZsmdPG2/sJTNdDJjEY= X-Received: by 127.0.0.2 with SMTP id dPVeYY7687511x61WAFXCyID; Wed, 27 Sep 2023 01:38:39 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web11.13232.1695803918286436416 for ; Wed, 27 Sep 2023 01:38:38 -0700 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-605-S2H3-d9lP4idO1v5NCJgxQ-1; Wed, 27 Sep 2023 04:38:35 -0400 X-MC-Unique: S2H3-d9lP4idO1v5NCJgxQ-1 X-Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 903B18039C8 for ; Wed, 27 Sep 2023 08:38:35 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.193.95]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6644140C6EA8 for ; Wed, 27 Sep 2023 08:38:35 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id E838A1800DDE; Wed, 27 Sep 2023 10:38:33 +0200 (CEST) Date: Wed, 27 Sep 2023 10:38:33 +0200 From: "Gerd Hoffmann" To: devel@edk2.groups.io Subject: [edk2-devel] setting TLS ciphers is broken (openssl 3?) Message-ID: <27kjaqdrgubri6i3vvickznsmdqnuo6h3tbxfmb3hr76n75gjf@cah3opindcnc> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,kraxel@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: kh9s19Uu2jpVXpDzeRDoyX0Nx7686176AA= Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=IjgzGDvs; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Hi, I've noticed that setting chipers for TLS stopped working in ovmf, most likely due to the openssl 3.0 update. Test case: try http boot from https server, set ciphers on the qemu command line using: -object tls-cipher-suites,id=tls-cipher0,priority=@SYSTEM -fw_cfg name=etc/edk2/https/ciphers,gen_id=tls-cipher0 OvmfPkg/Library/TlsAuthConfigLib will read it from fwcfg and set EDKII_HTTP_TLS_CIPHER_LIST_VARIABLE. CryptoPkg/Library/TlsLib/TlsConfig.c will read the variable, map the IDs to strings and call SSL_set_cipher_list() with the result. Later on the tls handshake fails. From the log: [ ... ] TlsDxe:TlsSetCipherList: CipherString={ ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GC M-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-A ES256-SHA:DHE-RSA-AES128-SHA:DHE-RSA-DES-CBC3-SHA } [ ... ] TlsDoHandshake SSL_HANDSHAKE_ERROR State=0x10 SSL_ERROR_SSL TlsDoHandshake ERROR 0x308010C=L6:R8010C TlsDoHandshake ERROR 0xA0C0103=L14:RC0103 [ ... ] take care, Gerd -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#109114): https://edk2.groups.io/g/devel/message/109114 Mute This Topic: https://groups.io/mt/101613778/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-