Article View: news.software.nntp
Article #79442Behaviour when STARTTLS fails
From: Julien ÉLIE
Date: Sat, 20 Sep 2008 15:22
Date: Sat, 20 Sep 2008 15:22
51 lines
2674 bytes
2674 bytes
Hi,
In RFC 4642, we have:
If the TLS negotiation fails, both client and server SHOULD
immediately close the connection. Note that while continuing the
NNTP session is theoretically possible, in practice a TLS negotiation
failure often leaves the session in an indeterminate state;
therefore, interoperability can not be guaranteed.
All right. However, samples do not show how to do that. There is
only an example when the connection still goes on:
[C] STARTTLS
[S] 382 Continue with TLS negotiation
[TLS negotiation is attempted here]
[Following failed negotiation, traffic resumes without TLS]
[C] CAPABILITIES
[S] 101 Capability list:
[S] VERSION 2
[S] READER
[S] STARTTLS
[S] LIST ACTIVE NEWSGROUPS OVERVIEW.FMT
[S] OVER
[S] .
Therefore, I wonder what is the right way to do that.
If the connection is not closed, the first command will never be understood
because there is no synchronization between the client and the server.
For intance:
STARTTLS
382 Begin TLS negotiation now
LIST ACTIVE.TIMES
500 What?
QUIT
205 Bye!
Can we just close the socket on failure? I assume it is what RFC 4642 suggests
because the server "SHOULD immediately close the connection".
Is it OK not to send 400 just before?
--
Julien ÉLIE
« Je ne suis ni pour ni contre, bien au contraire ! » (Coluche)
Technical Details
Message-ID:
<gb34f2$8rm$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.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeeder.dynfx.net!weretis.net!news.trigofacile.com!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <gb34f2$8rm$1@news.trigofacile.com> Subject: Behaviour when STARTTLS fails Date: Sat, 20 Sep 2008 17:22:08 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> 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.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeeder.dynfx.net!weretis.net!news.trigofacile.com!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 51 NNTP-Posting-Host: aaubervilliers-151-1-94-38.w83-199.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-15"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: news.trigofacile.com 1221924131 9078 83.199.213.38 (20 Sep 2008 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Sat, 20 Sep 2008 15:22:11 +0000 (UTC) X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049