NetBSD Problem Report #57065
From www@netbsd.org Wed Oct 19 13:08:36 2022
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 8446D1A921F
for <gnats-bugs@gnats.NetBSD.org>; Wed, 19 Oct 2022 13:08:36 +0000 (UTC)
Message-Id: <20221019130835.01D9C1A9239@mollari.NetBSD.org>
Date: Wed, 19 Oct 2022 13:08:34 +0000 (UTC)
From: nervoso@k1.com.br
Reply-To: nervoso@k1.com.br
To: gnats-bugs@NetBSD.org
Subject: typo in src/crypto/external/bsd/openssl/dist/apps/openssl.cnf
X-Send-Pr-Version: www-1.0
>Number: 57065
>Category: misc
>Synopsis: typo in src/crypto/external/bsd/openssl/dist/apps/openssl.cnf
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: misc-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Oct 19 13:10:00 +0000 2022
>Closed-Date: Sun May 14 12:19:28 +0000 2023
>Last-Modified: Sun May 14 12:19:28 +0000 2023
>Originator: sergio lenzi
>Release: HEAD 9.99.100
>Organization:
k1 sistemas
>Environment:
NetBSD NETBSDVMS.lenzicasa 9.99.100 NetBSD 9.99.100 (LZT64HEAD) #0: Sat Oct 8 18:31:27 -03 2022 NetBSD@NETBSDVMS.lenzicasa:/home/NetBSD/BUILD/HEAD/amd64/OBJ/sys/arch/amd64/compile/GENERIC amd64
>Description:
there is a typo in src/crypto/external/bsd/openssl/dist/apps/openssl.cnf
line 55 => default_md = sha2
should it be => sha256 ???
so using openssl using this default cnf file result in error
>How-To-Repeat:
use the /usr/share/examples/openssl/openssl.cnf as openssl conf file
>Fix:
apply a diff....
diff -u -r1.8 openssl.cnf
--- src/crypto/external/bsd/openssl/dist/apps/openssl.cnf 12 Mar 2019 16:58:12 -0000 1.8
+++ src/crypto/external/bsd/openssl/dist/apps/openssl.cnf 19 Oct 2022 12:01:02 -0000
@@ -107,7 +107,7 @@
[ req ]
default_bits = 2048
default_keyfile = privkey.pem
-default_md = sha2
+default_md = sha256
distinguished_name = req_distinguished_name
attributes = req_attributes
x509_extensions = v3_ca # The extensions to add to the self signed cert
>Release-Note:
>Audit-Trail:
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/57065 CVS commit: src/crypto/external/bsd/openssl/dist/apps
Date: Wed, 19 Oct 2022 10:23:00 -0400
Module Name: src
Committed By: christos
Date: Wed Oct 19 14:23:00 UTC 2022
Modified Files:
src/crypto/external/bsd/openssl/dist/apps: openssl.cnf
Log Message:
PR/57065: sergio lenzi: remove the default_md override, since 1.1 it is sha256
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 \
src/crypto/external/bsd/openssl/dist/apps/openssl.cnf
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: andvar@NetBSD.org
State-Changed-When: Sun, 14 May 2023 12:19:28 +0000
State-Changed-Why:
fixed by Christos, thanks for PR.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.