Re: Servers that just want to have TLS
"Paul E. Hoffman" <[email protected]>
| Newsgroups | gmane.ietf.apps-tls |
|---|---|
| Message-ID | <v03102805af97a347e6ac@[165.227.249.100]> |
At 6:48 AM -0700 5/8/97, Rodney Thayer wrote: >What to do if a server JUST wants to talk TLS.... > >I was thinking that one valid implementation path would be to simply always >use the TLS code. So, if someone tried to talk to you in the clear, you'd >fail negotiation. End of story. Just like if you telnet to >www.openmarket.com port 443 (a/k/a <https://www.openmarket.com>) with a >generic Telnet client. So in the SMTP case, you are saying: S: <waits for connection on TCP port 25> C: <opens connection> C & S: <start TLS session> C & S: <check result of negotiation> S: 220 mail.imc.org SMTP service ready I tend think this is a bad idea on any well-known port for which a client might expect a non-TLS session. In the case of a non-TLS client, it would start getting a stream of gibberish that it could not deal with at all. A well-crafted SMTP client should do something like "The first thing it said to me wasn't 220, so I'll just leave", but I'm not sure that many will do this if handed a binary stream from the server. In this case, maybe the first thing out of the server's mouth should be something like "287 Give a STARTTLS command before I talk to you at all". And, I still want a general model for application protocols where the client talks first. --Paul E. Hoffman, Director --Internet Mail Consortium