From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jason Vas Dias Newsgroups: gmane.emacs.devel Subject: Re: eww + w3m / GnuTLS TLSv1 support ? Date: Mon, 14 Feb 2022 12:34:04 +0000 Message-ID: References: <83v8xipufe.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30249"; mail-complaints-to="usenet@ciao.gmane.io" Cc: herbert@gojira.at, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 14 14:10:49 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nJb7v-0007dq-HC for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Feb 2022 14:10:47 +0100 Original-Received: from localhost ([::1]:49866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nJb7u-00085i-LF for ged-emacs-devel@m.gmane-mx.org; Mon, 14 Feb 2022 08:10:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJaYb-0000sH-FT for emacs-devel@gnu.org; Mon, 14 Feb 2022 07:34:17 -0500 Original-Received: from [2a00:1450:4864:20::42a] (port=44808 helo=mail-wr1-x42a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nJaYR-0003ut-V0; Mon, 14 Feb 2022 07:34:17 -0500 Original-Received: by mail-wr1-x42a.google.com with SMTP id u1so12837372wrg.11; Mon, 14 Feb 2022 04:34:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=pQuyt7+dHQqrTeArC1IbtvhBl3wIFFY2sxXIVGQmqeY=; b=Wbn3cCXr6VYuXSD8n96wpZoTBitJ37X656WHPICUlXfai/qpmvJIVBURx8Y9xudASX FHBIdCz3AElScJ9c3FecyNAbHobYGIZDa55slziYh7TEHFF6Y9deFGBKKaV6J/LfcBsp Y7o0WU30lMefN84ibRskgPF87SVPLE+xaI5N5D53gxAZFpO8oOCQMvPirIefeURRpy/S cOc+B/b3X+2v16cV04ubN2xb71wobtYqq1Yle51/YYoyflJqG304e6Go4SIElTJF0Ti3 BCDQYKIZrvxu2A7/PnxUjJlwCYwbK9kCC7uFStHMjPbFkJhH+HGx0lRQt3737m9ttiZ/ Rk4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=pQuyt7+dHQqrTeArC1IbtvhBl3wIFFY2sxXIVGQmqeY=; b=p1/stlkLB5CBmE5fOp00c6WPzagsrwqwNjj5w5PLe2/Z5xtUgjeWZ62bITbpw3l1qW rvJh+ga0qVy7oj0zJUwgy+JmmZG6KB2O8DgHU1vqOeHzbnX83hbGJYuX/4E9Z9RsD0Fb 9b4yMvlhPIXy++WHSd3jUgSOykCW2NlgkoTJwoywtYAMfxDJmfXVb68p6LfnsrFnbpZb bBGKBO655qckfHLs1C+YT+p+9VWPyzM80iSpFx+86eh5OjAaKOSqU6WPoRTc/7nGSlTv ieMx+ymPfeGrWdgro5cSVTKXwibaz5eaGpLacsTGFwcZ4trpykL1Sth8feq7Bgm7rYKk P5UA== X-Gm-Message-State: AOAM530Y5BTFwtiOumzTZtbOBZlSQD+IJ60vPSrtIdMxy8LNKpp9sn4I K4QT0Fm9G5YJPnD/mTNS+IGlGqLiD6VyC+hyzGjezR+P X-Google-Smtp-Source: ABdhPJytrEcoEHSY+gZuVfkpPOBFbg5mKVILvlxSg8lHtM90hst73vw0IM40cxaSj+JM18NKGOz8bV339HlJ49d+EuQ= X-Received: by 2002:a5d:4008:: with SMTP id n8mr6793841wrp.156.1644842045461; Mon, 14 Feb 2022 04:34:05 -0800 (PST) Original-Received: by 2002:a5d:4528:0:0:0:0:0 with HTTP; Mon, 14 Feb 2022 04:34:04 -0800 (PST) In-Reply-To: <83v8xipufe.fsf@gnu.org> X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::42a (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=jason.vas.dias@gmail.com; helo=mail-wr1-x42a.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.635, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:286258 Archived-At: Thanks, Eli - I did try setting : (set-variable gnutls-algorithm-priority "LEGACY:VERS-TLS1.3:VERS-TLS1.2:VERS-TLS1.1:VERS-TLS1.0" ) (set-variable my-tls-stream (open-gnutls-stream "tls" "tls-buffer" "192.168.1.1" "https") ) but still no joy : gnutls.el: (err=[-50] The request is invalid.) boot: (:priority LEGACY:VERS-TLS1.3:VERS-TLS1.2:VERS-TLS1.1:VERS-TLS1.0 :hostname 192.168.1.1 :loglevel 0 :min-prime-bits nil :trustfiles (/etc/pki/tls/certs/ca-bundle.crt /etc/ssl/cert.pem) :crlfiles nil :keylist nil :verify-flags nil :verify-error nil :callbacks nil) gnutls-negotiate: GnuTLS error: #, -50 On browsers, once I have got one to accept trying to use TLSv1.0 , which ATM stiil seems not to be possible, the next thing is I have to add the router's self-signed certificate to the browser's trust store, usually through some Advanced -> Add Security Exception "Site Security Exception List" - is there such a list for GnuTLS ? Or a way of specifying the equivalent of curls' '-k': 'do not validate certificate trust chain' option ? Thanks, All the best, Jason On 13/02/2022, Eli Zaretskii wrote: >> From: Jason Vas Dias >> Date: Sun, 13 Feb 2022 16:48:00 +0000 >> Cc: emacs-devel@gnu.org >> >> Still no joy with Firefox 96, Chrome Unstable, EWW, W3M - >> ideally, it would be nice if EWW or W3M would let me set >> the TLS protocol version to use, with some variable setting - >> that is really why I was posting to the emacs-devel list. > > AFAIU, in Emacs you should be able to request SSLv1 via the :priority > setting of gnutls-boot. E.g., try to customize > gnutls-algorithm-priority to include "VERS-TLS1.1". >