πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79447

Re: Behaviour when STARTTLS fails

#79447
From: Russ Allbery
Date: Sun, 21 Sep 2008 18:31
54 lines
3884 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> writes:

> The connection could continue unencrypted, in the same state as it was
> before STARTTLS, if both the client and the server fail to negotiate
> TLS.  It is the example provided by RFC 4642:

[...]

> But I believe it is not that easy:  the client will have to send an
> unknown number of commands (while the server is still in its negotiating
> state), then one command will be answered 500 (in most cases), then we
> can go on.

It also looks like if there ever was any ability to resume after an error,
it's been removed from the TLS protocol.  RFC 5246, section 7.2.2:

   Error handling in the TLS Handshake protocol is very simple.  When an
   error is detected, the detecting party sends a message to the other
   party.  Upon transmission or receipt of a fatal alert message, both
   parties immediately close the connection.  Servers and clients MUST
   forget any session-identifiers, keys, and secrets associated with a
   failed connection.  Thus, any connection terminated with a fatal
   alert MUST NOT be resumed.

   Whenever an implementation encounters a condition which is defined as
   a fatal alert, it MUST send the appropriate alert prior to closing
   the connection.  For all errors where an alert level is not
   explicitly specified, the sending party MAY determine at its
   discretion whether to treat this as a fatal error or not.  If the
   implementation chooses to send an alert but intends to close the
   connection immediately afterwards, it MUST send that alert at the
   fatal alert level.

   If an alert with a level of warning is sent and received, generally
   the connection can continue normally.  If the receiving party decides
   not to proceed with the connection (e.g., after having received a
   no_renegotiation alert that it is not willing to accept), it SHOULD
   send a fatal alert to terminate the connection.  Given this, the
   sending party cannot, in general, know how the receiving party will
   behave.  Therefore, warning alerts are not very useful when the
   sending party wants to continue the connection, and thus are
   sometimes omitted.  For example, if a peer decides to accept an
   expired certificate (perhaps after confirming this with the user) and
   wants to continue the connection, it would not generally send a
   certificate_expired alert.

Given that, I think the SHOULD NOT in RFC 4642 should be treated as a MUST
NOT.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87od2h1hcr.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mail
References: <gb34f2$8rm$1@news.trigofacile.com> <87ej3ebjh3.fsf@windlord.stanford.edu> <gb3r4b$k3u$1@news.trigofacile.com> <gb46s5$jh3$1@snarked.org> <gb4t03$saq$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <87od2h1hcr.fsf@windlord.stanford.edu>
Subject: Re: Behaviour when STARTTLS fails
Date: Sun, 21 Sep 2008 11:31:00 -0700
From: Russ Allbery <rra@stanford.edu>
References: <gb34f2$8rm$1@news.trigofacile.com> <87ej3ebjh3.fsf@windlord.stanford.edu> <gb3r4b$k3u$1@news.trigofacile.com> <gb46s5$jh3$1@snarked.org> <gb4t03$saq$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 54
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.stanford.edu 1222021860 12982 171.64.19.147 (21 Sep 2008
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)
Cancel-Lock: sha1:xjOrZKQxBLeyiDcEWRZjq0P9d+s=