From owner-freebsd-ports-bugs@freebsd.org Mon Jun 15 02:37:31 2020 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0730E34C483 for ; Mon, 15 Jun 2020 02:37:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 49lb8V6W3lz3gnk for ; Mon, 15 Jun 2020 02:37:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id DD82334C441; Mon, 15 Jun 2020 02:37:30 +0000 (UTC) Delivered-To: ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DD4BA34C15D for ; Mon, 15 Jun 2020 02:37:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49lb8V5ZFgz3xTx for ; Mon, 15 Jun 2020 02:37:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BAB7516846 for ; Mon, 15 Jun 2020 02:37:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 05F2bUot046784 for ; Mon, 15 Jun 2020 02:37:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 05F2bUei046783 for ports-bugs@FreeBSD.org; Mon, 15 Jun 2020 02:37:30 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 247267] mail/alpine: [regression] 2.22 on 12.1-RELEASE-p6 can no longer produce valid S/MIME signature Date: Mon, 15 Jun 2020 02:37:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: saper@saper.info X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jun 2020 02:37:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247267 Bug ID: 247267 Summary: mail/alpine: [regression] 2.22 on 12.1-RELEASE-p6 can no longer produce valid S/MIME signature Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: saper@saper.info CC: mbeis@xs4all.nl Flags: maintainer-feedback?(mbeis@xs4all.nl) CC: mbeis@xs4all.nl Created attachment 215569 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D215569&action= =3Dedit Reproduction case files as a tarfile I'm trying to track the difference between alpine 2.22 - FreeBSD 12.0-STABLE r345375 OpenSSL 1.1.1b-freebsd 26 Feb 2019 alpine built from ports vs alpine 2.22 - FreeBSD 12.1-RELEASE-p6 (fresh install) OpenSSL 1.1.1d-freebsd 10 Sep 2019 alpine from packages/build from ports as well The problem was with FreeBSD 12.1-RELEASE as well (upgrade to p6 did not ch= ange anything). I have also copied the 12.0 alpine binary to 12.1 and vice versa and it did= not fix the issue. I have enabled S/MIME signing by default and the emails sent with alpine 2.= 22 from the 12.1 machine have a broken signature. I have tracked this down to the difference in the sha256 hash in the messag= e: FreeBSD 12.0 machine generates a proper hash: 2971:d=3D8 hl=3D2 l=3D 32 prim: OCTET STRING [HEX DUMP]:9DD6716C5FA06FB131A4F1F099D8E81B29621D73672A96B38291EFB27E553503 FreeBSD 12.1 machine generates something improper: 2971:d=3D8 hl=3D2 l=3D 32 prim: OCTET STRING [HEX DUMP]:F6256B618764C64F31EF7D22F7609D2FA328F92F574048E397FFA62E99CBC917 In the attached files, "m" refers to the 12.0 machine, "q" to the 12.1 mach= ine. Files attached -> two_messages/m.eml < message from 12.0 as received with gmail two_messages/q.eml < message from 12.1 as received with gmail S/MIME PKCS#7 binary attachments extracted with munpack: two_messages/smime.m/smime.desc two_messages/smime.m/smime.p7s two_messages/smime.q/smime.desc two_messages/smime.q/smime.p7s Results of "openssl asn1parse -inform der" on the "p7s" files: two_messages/m.asn1 two_messages/q.asn1 Plaintext messages obtained via "openssl cms -verify -in X.eml" two_messages/m.plaintext two_messages/q.plaintext verification results: > openssl cms -in m.eml -verify > /dev/null Verification successful > openssl cms -in q.eml -verify > /dev/null Verification failure 34380907704:error:2E09A09E:CMS routines:CMS_SignerInfo_verify_content:verification failure:/usr/src/crypto/openssl/crypto/cms/cms_sd.c:853: 34380907704:error:2E09D06D:CMS routines:CMS_verify:content verify error:/usr/src/crypto/openssl/crypto/cms/cms_smime.c:393: > sha256 two_messages/m.plaintext SHA256 (two_messages/m.plaintext) =3D 9dd6716c5fa06fb131a4f1f099d8e81b29621d73672a96b38291efb27e553503 > sha256 two_messages/q.plaintext SHA256 (two_messages/q.plaintext) =3D 9dd6716c5fa06fb131a4f1f099d8e81b29621d73672a96b38291efb27e553503 locale setting on both machines: pl_PL.UTF-8 .pinerc .addressbook and the mailboxes have been copied from 12.0 to 12.1 --=20 You are receiving this mail because: You are the assignee for the bug.=