From owner-freebsd-ports@freebsd.org Thu Apr 1 15:24: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 1C2EC57BB67 for ; Thu, 1 Apr 2021 15:24:41 +0000 (UTC) (envelope-from SRS0=7TiG=I6=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FB6Rr5jcXz4RTp; Thu, 1 Apr 2021 15:24:40 +0000 (UTC) (envelope-from SRS0=7TiG=I6=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 1C64228426; Thu, 1 Apr 2021 17:24:33 +0200 (CEST) Received: from illbsd.quip.test (ip-94-113-69-69.net.upcbroadband.cz [94.113.69.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 48B9828416; Thu, 1 Apr 2021 17:24:32 +0200 (CEST) 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: lev@FreeBSD.org, freebsd-ports@freebsd.org References: From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <488123c1-afa1-a63c-5d91-b9c1488cb852@quip.cz> Date: Thu, 1 Apr 2021 17:24:31 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4FB6Rr5jcXz4RTp X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] 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: Thu, 01 Apr 2021 15:24:41 -0000 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.) Kind regards Miroslav Lachman