From owner-freebsd-ports@freebsd.org Fri Apr 2 08:07:41 2021 Return-Path: Delivered-To: freebsd-ports@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 5B41B5C7C22 for ; Fri, 2 Apr 2021 08:07:41 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FBXj9292Hz4Wky; Fri, 2 Apr 2021 08:07:41 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.not-for.work (onlyone.not-for.work [148.251.9.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: lev/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 21F0E2CAC7; Fri, 2 Apr 2021 08:07:41 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from [192.168.134.16] (unknown [94.19.224.8]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.not-for.work (Postfix) with ESMTPSA id 3F2C6120A5; Fri, 2 Apr 2021 11:07:39 +0300 (MSK) Reply-To: lev@FreeBSD.org Subject: Re: Port's OpenSSL 1.1.1k, 1 on FreeBSD 11-STABLE shows strange error (Inappropriate ioctl for device) on handshake (Server-side) To: Miroslav Lachman <000.fbsd@quip.cz>, freebsd-ports@freebsd.org References: <488123c1-afa1-a63c-5d91-b9c1488cb852@quip.cz> From: Lev Serebryakov Organization: FreeBSD Message-ID: <003fc033-b76c-9f6f-0db5-d34d92a166dc@FreeBSD.org> Date: Fri, 2 Apr 2021 11:07:38 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <488123c1-afa1-a63c-5d91-b9c1488cb852@quip.cz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Apr 2021 08:07:41 -0000 On 01.04.2021 18:24, Miroslav Lachman wrote: > On 01/04/2021 00:10, Lev Serebryakov wrote: >> >>   System is 11.4-STABLE r366937. >> >>   I've ports built with OpenSSL from ports (DEFAULT_VERSIONS+=ssl=openssl). After upgrade to latest 1.1.1k,1 my nginx reject HTTPS connections with cryptic >> >> SSL_do_handshake() failed (SSL: error:02015019:system library:ioctl:Inappropriate ioctl for device error:1427D044:SSL routines:construct_stateless_ticket:internal error error:02015019:system library:ioctl:Inappropriate ioctl for device) >> >>   What happens? What did I do wrong? >> >>   Previous OpenSSL version worked without problem. > > We are using FreeBSD 11.4 with port's OpenSSL too. Already deployed newer version of OpenSSL on all machines without any troubles. (Apache / Nginx / Lighttpd / Postfix / ProFTPd and some other openssl library consumers) > > Do you have any special SSL / TLS configuration in nginx.conf? (protocol version, ciphers etc.) It is https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254643 — I have `cryptodev` in my kernel (statically linked!). -- // Lev Serebryakov