rfc4217.txt
Upload User: hbyfgg
Upload Date: 2015-04-03
Package Size: 74k
Code Size: 60k
Development Platform:

Unix_Linux

  1. Network Working Group                                 P. Ford-Hutchinson
  2. Request for Comments: 4217                                    IBM UK Ltd
  3. Category: Standards Track                                   October 2005
  4.                          Securing FTP with TLS
  5. Status of This Memo
  6.    This document specifies an Internet standards track protocol for the
  7.    Internet community, and requests discussion and suggestions for
  8.    improvements.  Please refer to the current edition of the "Internet
  9.    Official Protocol Standards" (STD 1) for the standardization state
  10.    and status of this protocol.  Distribution of this memo is unlimited.
  11. Copyright Notice
  12.    Copyright (C) The Internet Society (2005).
  13. Abstract
  14.    This document describes a mechanism that can be used by FTP clients
  15.    and servers to implement security and authentication using the TLS
  16.    protocol defined by RFC 2246, "The TLS Protocol Version 1.0.", and
  17.    the extensions to the FTP protocol defined by RFC 2228, "FTP Security
  18.    Extensions".  It describes the subset of the extensions that are
  19.    required and the parameters to be used, discusses some of the policy
  20.    issues that clients and servers will need to take, considers some of
  21.    the implications of those policies, and discusses some expected
  22.    behaviours of implementations to allow interoperation.  This document
  23.    is intended to provide TLS support for FTP in a similar way to that
  24.    provided for SMTP in RFC 2487, "SMTP Service Extension for Secure
  25.    SMTP over Transport Layer Security", and HTTP in RFC 2817, "Upgrading
  26.    to TLS Within HTTP/1.1.".
  27.    This specification is in accordance with RFC 959, "File Transfer
  28.    Protocol".  It relies on RFC 2246, "The TLS Protocol Version 1.0.",
  29.    and RFC 2228, "FTP Security Extensions".
  30. Ford-Hutchinson             Standards Track                     [Page 1]
  31. RFC 4217                 Securing FTP with TLS              October 2005
  32. Table of Contents
  33.    1. Introduction ....................................................3
  34.    2. Audience ........................................................5
  35.    3. Overview ........................................................5
  36.    4. Session Negotiation on the Control Port .........................5
  37.       4.1. Client Wants a Secured Session .............................5
  38.       4.2. Server Wants a Secured Session .............................6
  39.    5. Clearing the Control Port .......................................6
  40.    6. Response to the FEAT Command ....................................7
  41.    7. Data Connection Behaviour .......................................8
  42.    8. Mechanisms for the AUTH Command .................................9
  43.    9. Data Connection Security ........................................9
  44.    10. A Discussion of Negotiation Behaviour .........................11
  45.       10.1. The Server's View of the Control Connection ..............11
  46.       10.2. The Server's View of the Data Connection .................12
  47.       10.3. The Client's View of the Control Connection ..............14
  48.       10.4. The Client's View of the Data Connection .................15
  49.    11. Who Negotiates What, Where, and How ...........................15
  50.       11.1. Do we protect at all? ....................................15
  51.       11.2. What level of protection do we use on the Control
  52.             connection? ..............................................15
  53.       11.3. Do we protect data connections in general? ...............16
  54.       11.4. Is protection required for a particular data transfer? ...16
  55.       11.5. What level of protection is required for a
  56.             particular data ..........................................16
  57.    12. Timing Diagrams ...............................................16
  58.       12.1. Establishing a Protected Session .........................17
  59.       12.2. Establishing a Protected Session Without a
  60.             Password Request .........................................18
  61.       12.3. Establishing a Protected Session and then
  62.             Clearing with the CCC ....................................19
  63.       12.4. A Standard Data Transfer Without Protection ..............20
  64.       12.5. A Firewall-Friendly Data Transfer Without Protection .....20
  65.       12.6. A Standard Data Transfer with Protection .................21
  66.       12.7. A Firewall-Friendly Data Transfer with Protection ........21
  67.    13. Discussion of the REIN Command ................................22
  68.    14. Discussion of the STAT and ABOR Commands ......................22
  69.    15. Security Considerations .......................................23
  70.       15.1. Verification of Authentication Tokens ....................23
  71.            15.1.1. Server Certificates ...............................23
  72.            15.1.2. Client Certificates ...............................23
  73.       15.2. Addressing FTP Security Considerations [RFC-2577] ........24
  74.            15.2.1. Bounce Attack .....................................24
  75.            15.2.2. Restricting Access ................................24
  76.            15.2.3. Protecting Passwords ..............................24
  77.            15.2.4. Privacy ...........................................24
  78.            15.2.5. Protecting Usernames ..............................24
  79. Ford-Hutchinson             Standards Track                     [Page 2]
  80. RFC 4217                 Securing FTP with TLS              October 2005
  81.            15.2.6. Port Stealing .....................................25
  82.            15.2.7. Software-Based Security Problems ..................25
  83.       15.3. Issues with the CCC Command ..............................25
  84.    16. IANA Considerations ...........................................25
  85.    17. Other Parameters ..............................................25
  86.    18. Scalability and Limits ........................................26
  87.    19. Applicability .................................................26
  88.    20. Acknowledgements ..............................................26
  89.    21. References ....................................................26
  90.       21.1. Normative References .....................................26
  91.       21.2. Informative References ...................................27
  92. 1.  Introduction
  93.    This document describes how three other documents should be combined
  94.    to provide a useful, interoperable, and secure file transfer
  95.    protocol.  Those documents are:
  96.       RFC 959 [RFC-959]
  97.          The description of the Internet File Transfer Protocol.
  98.       RFC 2246 [RFC-2246]
  99.          The description of the Transport Layer Security protocol
  100.          (developed from the Netscape Secure Sockets Layer (SSL)
  101.          protocol version 3.0).
  102.       RFC 2228 [RFC-2228]
  103.          Extensions to the FTP protocol to allow negotiation of security
  104.          mechanisms to allow authentication, confidentiality, and
  105.          message integrity.
  106.    This document is intended to provide TLS support for FTP in a similar
  107.    way to that provided for SMTP in RFC 3207 [RFC-3207] and HTTP in RFC
  108.    2817 [RFC-2817].
  109.    The security extensions to FTP in [RFC-2228] offer a comprehensive
  110.    set of commands and responses that can be used to add authentication,
  111.    integrity, and confidentiality to the FTP protocol.  The TLS protocol
  112.    is a popular (due to its wholesale adoption in the HTTP environment)
  113.    mechanism for generally securing a socket connection.
  114.    Although TLS is not the only mechanism for securing file transfer, it
  115.    does offer some of the following positive attributes:
  116. Ford-Hutchinson             Standards Track                     [Page 3]
  117. RFC 4217                 Securing FTP with TLS              October 2005
  118.       - Flexible security levels.  TLS can support confidentiality,
  119.         integrity, authentication, or some combination of all of these.
  120.         During a session, this allows clients and servers to dynamically
  121.         decide on the level of security required for a particular data
  122.         transfer.
  123.       - Ability to provide strong authentication of the FTP server.
  124.       - It is possible to use TLS identities to authenticate client
  125.         users and client hosts.
  126.       - Formalised public key management.  By use of well established
  127.         client identity mechanisms (supported by TLS) during the
  128.         authentication phase, certificate management may be built into a
  129.         central function.  Whilst this may not be desirable for all uses
  130.         of secured file transfer, it offers advantages in certain
  131.         structured environments.
  132.       - Co-existence and interoperation with authentication mechanisms
  133.         that are already in place for the HTTPS protocol.  This allows
  134.         web browsers to incorporate secure file transfer using the same
  135.         infrastructure that has been set up to allow secure web
  136.         browsing.
  137.    The TLS protocol is a development of the Netscape Communication
  138.    Corporation's SSL protocol and this document can be used to allow the
  139.    FTP protocol to be used with either SSL or TLS.  The actual protocol
  140.    used will be decided by the negotiation of the protected session by
  141.    the TLS/SSL layer.  This document will only refer to the TLS
  142.    protocol; however, it is understood that the Client and Server MAY
  143.    actually be using SSL if they are so configured.
  144.    There are many ways in which these three protocols can be combined.
  145.    This document selects one method by which FTP can operate securely,
  146.    while providing both flexibility and interoperation.  This
  147.    necessitates a brief description of the actual negotiation mechanism,
  148.    a detailed description of the required policies and practices, and a
  149.    discussion of the expected behaviours of clients and servers to allow
  150.    either party to impose their security requirements on the FTP
  151.    session.
  152.    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
  153.    "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY" and "OPTIONAL" that
  154.    appear in this document are to be interpreted as described in
  155.    [RFC-2119].
  156. Ford-Hutchinson             Standards Track                     [Page 4]
  157. RFC 4217                 Securing FTP with TLS              October 2005
  158. 2.  Audience
  159.    This document is aimed at developers who wish to implement TLS as a
  160.    security mechanism to secure FTP clients and/or servers.
  161.    Systems administrators and architects should be fully aware of the
  162.    security implications discussed in [RFC-2228], which need to be
  163.    considered when choosing an implementation of this protocol and
  164.    configuring it to provide their required security.
  165. 3.  Overview
  166.    A full description of the FTP security protocol enhancements is
  167.    contained in [RFC-2228].  This document describes how the AUTH, PROT,
  168.    PBSZ, and CCC commands, defined therein, should be implemented with
  169.    the TLS protocol.
  170.    In summary, an FTP session is established on the normal control port.
  171.    A client requests TLS with the AUTH command and then decides if it
  172.    wishes to secure the data connections by use of the PBSZ and PROT
  173.    commands.  Should a client wish to make the control connection revert
  174.    back into plaintext (for example, once the authentication phase is
  175.    completed), then the CCC command can be used.
  176.    Implementation of this protocol extension does not ensure that each
  177.    and every session and data transfer is secure, it merely provides the
  178.    tools that allow a client and/or server to negotiate an acceptable or
  179.    required level of security for that given session or data transfer.
  180.    However, it is possible to have a server implementation that is
  181.    capable of refusing to operate in an insecure fashion.
  182. 4.  Session Negotiation on the Control Port
  183.    The server listens on the normal FTP control port {FTP-PORT} and the
  184.    session initiation is not secured at all.  Once the client wishes to
  185.    secure the session, the AUTH command is sent and the server MAY then
  186.    allow TLS negotiation to take place.
  187. 4.1.  Client Wants a Secured Session
  188.    If a client wishes to attempt to secure a session, then it SHOULD, in
  189.    accordance with [RFC-2228], send the AUTH command with the parameter
  190.    requesting TLS {TLS-PARM} ('TLS').
  191.    The client then needs to behave according to its policies depending
  192.    on the response received from the server and also the result of the
  193.    TLS negotiation.  A client that receives an AUTH rejection MAY choose
  194.    to continue with the session unprotected if it so desires.
  195. Ford-Hutchinson             Standards Track                     [Page 5]
  196. RFC 4217                 Securing FTP with TLS              October 2005
  197. 4.2.  Server Wants a Secured Session
  198.    The FTP protocol does not allow a server to directly dictate client
  199.    behaviour; however, the same effect can be achieved by refusing to
  200.    accept certain FTP commands until the session is secured to a level
  201.    that is acceptable to the server.
  202.    In either case, '234' is the server response to an 'AUTH TLS' command
  203.    that it will honour.
  204.    The '334' response, as defined in [RFC-2228], implies that an ADAT
  205.    exchange will follow.  This document does not use the ADAT command
  206.    and so the '334' reply is incorrect.
  207.    The FTP protocol insists that a USER command be used to identify the
  208.    entity attempting to use the ftp server.  Although the TLS
  209.    negotiation may be providing authentication information, the USER
  210.    command MUST still be issued by the client.  However, it will be a
  211.    server implementation issue to decide which credentials to accept and
  212.    what consistency checks to make between the client cert used and the
  213.    parameter on the USER command.
  214.    [RFC-2228] states that the user must reauthorize (that is, reissue
  215.    some or all of the USER, PASS, and ACCT commands) following an AUTH
  216.    command.  Additionally, this document specifies that all other
  217.    transfer parameters (other than the AUTH parameter) must be reset,
  218.    almost as if a REIN command was issued.
  219.       Reset transfer parameters after the AUTH command, including (but
  220.       are not limited to): user identity, default data ports, TYPE,
  221.       STRU, MODE, and current working directory.
  222. 5.  Clearing the Control Port
  223.    There are circumstances in which it may be desirable to protect the
  224.    control connection only during part of the session and then to revert
  225.    back to a plaintext connection.  This is often due to the limitations
  226.    of boundary devices such as NAT and firewalls, which expect to be
  227.    able to examine the content of the control connection in order to
  228.    modify their behaviour.
  229.    Typically the AUTH, USER, PASS, PBSZ, and PROT commands would be
  230.    protected within the TLS protocol and then the CCC command would be
  231.    issued to return to a plaintext socket state.  This has important
  232.    Security Issues (which are discussed in the Security Considerations
  233.    section), but this document describes how the command should be used,
  234.    if the client and server still wish to use it after having considered
  235.    the issues.
  236. Ford-Hutchinson             Standards Track                     [Page 6]
  237. RFC 4217                 Securing FTP with TLS              October 2005
  238.    When a server receives the CCC command, it should behave as follows:
  239.       If the server does not accept CCC commands (or does not understand
  240.       them), then a 500 reply should be sent.
  241.       Otherwise, if the control connection is not protected with TLS,
  242.       then a 533 reply should be sent.
  243.       Otherwise, if the server does not wish to allow the control
  244.       connection to be cleared at this time, then a 534 reply should be
  245.       sent.
  246.       Otherwise, the server is accepting the CCC command and should do
  247.       the following:
  248.          o  Send a 200 reply.
  249.          o  Shutdown the TLS session on the socket and leave it open.
  250.          o  Continue the control connection in plaintext, expecting the
  251.             next command from the client to be in plaintext.
  252.          o  Not accept any more PBSZ or PROT commands.  All subsequent
  253.             data transfers must be protected with the current PROT
  254.             settings.
  255. 6.  Response to the FEAT Command
  256.    The FEAT command (introduced in [RFC-2389]) allows servers with
  257.    additional features to advertise these to a client by responding to
  258.    the FEAT command.  If a server supports the FEAT command, then it
  259.    MUST advertise supported AUTH, PBSZ, and PROT commands in the reply,
  260.    as described in section 3.2 of [RFC-2389].  Additionally, the AUTH
  261.    command should have a reply that identifies 'TLS' as one of the
  262.    possible parameters to AUTH.  It is not necessary to identify the
  263.    'TLS-C' synonym separately.
  264.    Example reply (in the same style as [RFC-2389])
  265.       C> FEAT
  266.       S> 211-Extensions supported
  267.       S>  AUTH TLS
  268.       S>  PBSZ
  269.       S>  PROT
  270.       S> 211 END
  271. Ford-Hutchinson             Standards Track                     [Page 7]
  272. RFC 4217                 Securing FTP with TLS              October 2005
  273. 7.  Data Connection Behaviour
  274.    The Data Connection in the FTP model can be used in one of three
  275.    ways.  (Note: These descriptions are not necessarily placed in exact
  276.    chronological order, but do describe the steps required.  See
  277.    diagrams later for clarification.)
  278.             i) Classic FTP client/server data exchange
  279.                  - The client obtains a port; sends the port number to
  280.                    the server; the server connects to the client.  The
  281.                    client issues a send or receive request to the server
  282.                    on the control connection and the data transfer
  283.                    commences on the data connection.
  284.           ii) Firewall-Friendly client/server data exchange (as
  285.               discussed in [RFC-1579]) using the PASV command to reverse
  286.               the direction of the data connection.
  287.                  - The client requests that the server open a port; the
  288.                    server obtains a port and returns the address and
  289.                    port number to the client; the client connects to the
  290.                    server on this port.  The client issues a send or
  291.                    receive request on the control connection, and the
  292.                    data transfer commences on the data connection.
  293.          iii) Client-initiated server/server data exchange (proxy or
  294.               PASV connections).
  295.                  - The client requests that server A opens a port;
  296.                    server A obtains a port and returns it to the client;
  297.                    the client sends this port number to server B.
  298.                    Server B connects to server A.  The client sends a
  299.                    send or receive request to server A and the
  300.                    complement to server B and the data transfer
  301.                    commences.  In this model, server A is the proxy or
  302.                    PASV host and is a client for the Data Connection to
  303.                    server B.
  304.    For i) and ii), the FTP client MUST be the TLS client and the FTP
  305.    server MUST be the TLS server.
  306.    That is to say, it does not matter which side initiates the
  307.    connection with a connect() call or which side reacts to the
  308.    connection via the accept() call; the FTP client, as defined in
  309.    [RFC-959], is always the TLS client, as defined in [RFC-2246].
  310. Ford-Hutchinson             Standards Track                     [Page 8]
  311. RFC 4217                 Securing FTP with TLS              October 2005
  312.    In scenario iii), there is a problem in that neither server A nor
  313.    server B is the TLS client, given the fact that an FTP server must
  314.    act as a TLS server for Firewall-Friendly FTP [RFC-1579].  Thus, this
  315.    is explicitly excluded in the security extensions document [RFC-2228]
  316.    and in this document.
  317. 8.  Mechanisms for the AUTH Command
  318.    The AUTH command takes a single parameter to define the security
  319.    mechanism to be negotiated.  As the SSL/TLS protocols self-negotiate
  320.    their levels, there is no need to distinguish between SSL and TLS in
  321.    the application layer.  The mechanism name for negotiating TLS is the
  322.    character string identified in {TLS-PARM}.  This allows the client
  323.    and server to negotiate TLS on the control connection without
  324.    altering the protection of the data channel.  To protect the data
  325.    channel as well, the PBSZ command, followed by the PROT command
  326.    sequence, MUST be used.
  327.    Note: The data connection state MAY be modified by the client issuing
  328.    the PROT command with the new desired level of data channel
  329.    protection and the server replying in the affirmative.  This data
  330.    channel protection negotiation can happen at any point in the session
  331.    (even straight after a PORT or PASV command) and as often as is
  332.    required.
  333.    See also Section 16, "IANA Considerations".
  334. 9.  Data Connection Security
  335.    The Data Connection security level is determined by the PROT command.
  336.       The PROT command, as specified in [RFC-2228], allows client/server
  337.       negotiation of the security level of the data connection.  Once a
  338.       PROT command has been issued by the client and accepted by the
  339.       server returning the '200' reply, the security of subsequent data
  340.       connections MUST be at that level until another PROT command is
  341.       issued and accepted; the session ends and a REIN command is
  342.       issued, or the security of the session (via an AUTH command) is
  343.       re-negotiated.
  344.    Data Connection Security Negotiation (the PROT command)
  345.       Note: In line with [RFC-2228], there is no facility for securing
  346.       the Data connection with an insecure Control connection.
  347.       Specifically, the PROT command MUST be preceded by a PBSZ command,
  348.       and a PBSZ command MUST be preceded by a successful security data
  349.       exchange (the TLS negotiation in this case).
  350. Ford-Hutchinson             Standards Track                     [Page 9]
  351. RFC 4217                 Securing FTP with TLS              October 2005
  352.       The command defined in [RFC-2228] to negotiate data connection
  353.       security is the PROT command.  As defined, there are four values
  354.       that the PROT command parameter can take.
  355.             'C' - Clear - neither Integrity nor Privacy
  356.             'S' - Safe - Integrity without Privacy
  357.             'E' - Confidential - Privacy without Integrity
  358.             'P' - Private - Integrity and Privacy
  359.       As TLS negotiation encompasses (and exceeds) the Safe /
  360.       Confidential / Private distinction, only Private (use TLS) and
  361.       Clear (don't use TLS) are used.
  362.       For TLS, the data connection can have one of two security levels.
  363.             1) Clear (requested by 'PROT C')
  364.             2) Private (requested by 'PROT P')
  365.       With 'Clear' protection level, the data connection is made without
  366.       TLS.  Thus, the connection is unauthenticated and has no
  367.       confidentiality or integrity.  This might be the desired behaviour
  368.       for servers sending file lists, pre-encrypted data, or non-
  369.       sensitive data (e.g., for anonymous FTP servers).
  370.       If the data connection security level is 'Private', then a TLS
  371.       negotiation must take place on the data connection to the
  372.       satisfaction of the Client and Server prior to any data being
  373.       transmitted over the connection.  The TLS layers of the Client and
  374.       Server will be responsible for negotiating the exact TLS Cipher
  375.       Suites that will be used (and thus the eventual security of the
  376.       connection).
  377.       In addition, the PBSZ (protection buffer size) command, as
  378.       detailed in [RFC-2228], is compulsory prior to any PROT command.
  379.       This document also defines a data channel encapsulation mechanism
  380.       for protected data buffers.  For FTP-TLS, which appears to the FTP
  381.       application as a streaming protection mechanism, this is not
  382.       required.  Thus, the PBSZ command MUST still be issued, but must
  383.       have a parameter of '0' to indicate that no buffering is taking
  384.       place and the data connection should not be encapsulated.
  385.       Note that PBSZ 0 is not in the grammar of [RFC-2228], section 8.1,
  386.       where it is stated:
  387. Ford-Hutchinson             Standards Track                    [Page 10]
  388. RFC 4217                 Securing FTP with TLS              October 2005
  389.          PBSZ <sp> <decimal-integer> <CRLF> <decimal-integer> ::= any
  390.          decimal integer from 1 to (2^32)-1
  391.       However, it should be noted that using a value of '0' to mean a
  392.       streaming protocol is a reasonable use of '0' for that parameter
  393.       and is not ambiguous.
  394.    Initial Data Connection Security
  395.       The initial state of the data connection MUST be 'Clear' (this is
  396.       the behaviour as indicated by [RFC-2228]).
  397. 10.  A Discussion of Negotiation Behaviour
  398.    As [RFC-2228] allows security qualities to be negotiated, enabled,
  399.    and disabled dynamically, this can make implementations seem quite
  400.    complex.  However, in any given instance the behaviour should be
  401.    quite straightforward.  Either the server will be enforcing the
  402.    policy of the server host or it will be providing security
  403.    capabilities requested by the client.  Either the client will be
  404.    conforming to the server's policy or will be endeavouring to provide
  405.    the capabilities that the user desires.
  406. 10.1.  The Server's View of the Control Connection
  407.    A server MAY have a policy statement somewhere that might:
  408.       - Deny any command before TLS is negotiated (this might cause
  409.         problems if a SITE or some such command is required prior to
  410.         login).
  411.       - Deny certain commands before TLS is negotiated (e.g., USER,
  412.         PASS, or ACCT).
  413.       - Deny insecure USER commands for certain users (e.g., not
  414.         ftp/anonymous).
  415.       - Deny secure USER commands for certain users (e.g.,
  416.         ftp/anonymous).
  417.       - Define the level(s) of TLS to be allowed.
  418.       - Define the CipherSuites allowed to be used (perhaps on a per
  419.         host/domain/...  basis).
  420.       - Allow TLS authentication as a substitute for local
  421.         authentication.
  422. Ford-Hutchinson             Standards Track                    [Page 11]
  423. RFC 4217                 Securing FTP with TLS              October 2005
  424.       - Define data connection policies (see next section).
  425.       It is possible that the TLS negotiation may not be completed
  426.       satisfactorily for the server, in which case it can be one of
  427.       these states.
  428.          The TLS negotiation failed completely
  429.             In this case, the control connection should still be in an
  430.             unprotected mode and the server SHOULD issue an unprotected
  431.             '421' reply to end the session.
  432.          The TLS negotiation completed successfully, but the server
  433.          decides that the session parameters are not acceptable (e.g.,
  434.          Distinguished Name in the client certificate is not permitted
  435.          to use the server).
  436.             In this case, the control connection should still be in a
  437.             protected state, so the server MAY either continue to refuse
  438.             to service commands or issue a protected '421' reply and
  439.             close the connection.
  440.          The TLS negotiation failed during the TLS handshake
  441.             In this case, the control connection is in an unknown state
  442.             and the server SHOULD simply drop the control connection.
  443.    The server code will be responsible for implementing the required
  444.    policies and ensuring that the client is prevented from circumventing
  445.    the chosen security by refusing to service those commands that are
  446.    against policy.
  447. 10.2.  The Server's View of the Data Connection
  448.    The server can take one of four basic views of the data connection.
  449.       1 - Don't allow encryption at all (in which case the PROT command
  450.           should not allow any value other than 'C' - if it is allowed
  451.           at all).
  452.       2 - Allow the client to choose protection or not.
  453.       3 - Insist on data protection (in which case the PROT command must
  454.           be issued prior to the first attempted data transfer).
  455.       4 - Decide on one of the above three for each and every data
  456.           connection.
  457. Ford-Hutchinson             Standards Track                    [Page 12]
  458. RFC 4217                 Securing FTP with TLS              October 2005
  459.    The server SHOULD only check the status of the data protection level
  460.    (for options 3 and 4 above) on the actual command that will initiate
  461.    the data transfer (and not on the PORT or PASV).  The following
  462.    commands, defined in [RFC-959], cause data connections to be opened
  463.    and thus may be rejected before any 1xx message due to an incorrect
  464.    PROT setting.
  465.          STOR
  466.          RETR
  467.          NLST
  468.          LIST
  469.          STOU
  470.          APPE
  471.    The reply to indicate that the PROT setting is incorrect is '521 data
  472.    connection cannot be opened with this PROT setting'
  473.    If the protection level indicates that TLS is required, then it
  474.    should be negotiated once the data connection is made.  Thus, the
  475.    '150' reply only states that the command can be used given the
  476.    current PROT level.  Should the server not like the TLS negotiation,
  477.    then it will close the data port immediately and follow the '150'
  478.    command with a '522' reply, which indicates that the TLS negotiation
  479.    failed or was unacceptable.  (Note: This means that the application
  480.    can pass a standard list of CipherSuites to the TLS layer for
  481.    negotiation, and review the one negotiated for applicability in each
  482.    instance).
  483.    The Security Considerations section discusses the issue of cross-
  484.    checking any certificates used to authenticate the data connection
  485.    with the one(s) used to authenticate the control connection.  This is
  486.    an important security step.
  487.    It is reasonable for the server to insist that the data connection
  488.    uses a TLS cached session.  This might be a cache of a previous data
  489.    connection or of a cleared control connection.  If this is the reason
  490.    for the refusal to allow the data transfer, then the '522' reply
  491.    should indicate this.
  492.    Note: This has an important impact on client design, but allows
  493.    servers to minimise the cycles used during TLS negotiation by
  494.    refusing to perform a full negotiation with a previously
  495.    authenticated client.
  496.    It should be noted that the TLS authentication of the server will be
  497.    authentication of the server host itself and not a user on the server
  498.    host.
  499. Ford-Hutchinson             Standards Track                    [Page 13]
  500. RFC 4217                 Securing FTP with TLS              October 2005
  501. 10.3.  The Client's View of the Control Connection
  502.    In most cases, it is likely that the client will be using TLS because
  503.    the server would refuse to interact insecurely.  To allow for this,
  504.    clients SHOULD be flexible enough to manage the securing of a session
  505.    at the appropriate time and still allow the user/server policies to
  506.    dictate exactly when during the session the security is negotiated.
  507.    In the case where it is the client that is insisting on the securing
  508.    of the session, the client will need to ensure that the negotiations
  509.    are all completed satisfactorily and will need to be able to sensibly
  510.    inform the user should the server not support, or not be prepared to
  511.    use, the required security levels.
  512.    Clients SHOULD be coded in such a manner as to allow the timing of
  513.    the AUTH, PBSZ, and PROT commands to be flexible and dictated by the
  514.    server.  It is quite reasonable for a server to refuse certain
  515.    commands prior to these commands.  Similarly, it is quite possible
  516.    that a SITE or quoted command might be needed by a server prior to
  517.    the AUTH.  A client MUST allow a user to override the timing of these
  518.    commands to suit a specific server.
  519.    For example, a client SHOULD NOT insist on sending the AUTH as the
  520.    first command in a session, nor should it insist on issuing a
  521.    PBSZ/PROT pair directly after the AUTH.  This may well be the default
  522.    behaviour, but must be overridable by a user.
  523.    The TLS negotiation may not be completed satisfactorily for the
  524.    client, in which case it will be in one of these states:
  525.       The TLS negotiation failed completely
  526.          In this case, the control connection should still be in an
  527.          unprotected mode and the client should issue an unprotected
  528.          QUIT command to end the session.
  529.       The TLS negotiation completed successfully, but the client decides
  530.       that the session parameters are not acceptable (e.g.,
  531.       Distinguished Name in certificate is not the actual server
  532.       expected).
  533.          In this case, the control connection should still be up in a
  534.          protected state, so the client should issue a protected QUIT
  535.          command to end the session.
  536. Ford-Hutchinson             Standards Track                    [Page 14]
  537. RFC 4217                 Securing FTP with TLS              October 2005
  538.       The TLS negotiation failed during the TLS handshake.
  539.          In this case, the control connection is in an unknown state and
  540.          the client should simply drop the control connection.
  541. 10.4.  The Client's View of the Data Connection
  542.    Client security policies
  543.       Clients do not typically have 'policies' as such, instead they
  544.       rely on the user to define their actions and, to a certain extent,
  545.       are reactive to the server policy.  Thus, a client will need to
  546.       have commands that will allow the user to switch the protection
  547.       level of the data connection dynamically; however, there may be a
  548.       general 'policy' that attempts all LIST and NLST commands on a
  549.       Clear connection first (and automatically switches to Private if
  550.       it fails).  In this case, there would need to be a user command
  551.       available to ensure that a given data transfer was not attempted
  552.       on an insecure data connection.
  553.       Clients also need to understand that the level of the PROT setting
  554.       is only checked for a particular data transfer after that transfer
  555.       has been requested.  Thus, a refusal by the server to accept a
  556.       particular data transfer should not be read by the client as a
  557.       refusal to accept that data protection level completely, as not
  558.       only may other data transfers be acceptable at that protection
  559.       level, but it is entirely possible that the same transfer may be
  560.       accepted at the same protection level at a later point in the
  561.       session.
  562.       It should be noted that the TLS authentication of the client
  563.       should be an authentication of a user on the client host and not
  564.       the client host itself.
  565. 11.  Who Negotiates What, Where, and How
  566. 11.1.  Do we protect at all?
  567.    Client issues 'AUTH TLS', server accepts or rejects.  If the server
  568.    needs AUTH, then it refuses to accept certain commands until it gets
  569.    a successfully protected session.
  570. 11.2.  What level of protection do we use on the Control connection?
  571.    Decided entirely by the TLS CipherSuite negotiation.
  572. Ford-Hutchinson             Standards Track                    [Page 15]
  573. RFC 4217                 Securing FTP with TLS              October 2005
  574. 11.3.  Do we protect data connections in general?
  575.    Client issues PROT command, server accepts or rejects.
  576. 11.4.  Is protection required for a particular data transfer?
  577.    A client would have already issued a PROT command if it required the
  578.    connection to be protected.
  579.    If a server needs to have the connection protected, then it will
  580.    reply to the STOR/RETR/NLST/... command with a '522', indicating that
  581.    the current state of the data connection protection level is not
  582.    sufficient for that data transfer at that time.
  583. 11.5.  What level of protection is required for a particular data
  584.        transfer?
  585.    Decided entirely by the TLS CipherSuite negotiation.
  586.    Thus, for flexibility, it can be seen that it is desirable for the
  587.    FTP application to be able to interact with the TLS layer upon which
  588.    it sits to define and discover the exact TLS CipherSuites that are to
  589.    be/have been negotiated and to make decisions accordingly.
  590. 12.  Timing Diagrams
  591.    These timing diagrams aim to help explain exactly how the TLS
  592.    handshake and session protection fits into the existing logic of the
  593.    FTP protocol.  Of course, the FTP protocol itself is not well
  594.    described with respect to the timing of commands and responses in
  595.    [RFC-959], so this is partly based on empirical observation of
  596.    existing widespread client and server implementations.
  597. Ford-Hutchinson             Standards Track                    [Page 16]
  598. RFC 4217                 Securing FTP with TLS              October 2005
  599. 12.1.  Establishing a Protected Session
  600.               Client                                 Server
  601.      control          data                   data               control
  602.    ====================================================================
  603.                                                                 socket()
  604.                                                                 bind()
  605.      socket()
  606.      connect()  ----------------------------------------------> accept()
  607.                <----------------------------------------------  220
  608.      AUTH TLS   ---------------------------------------------->
  609.                <----------------------------------------------  234
  610.      TLSneg()  <----------------------------------------------> TLSneg()
  611.      PBSZ 0     ---------------------------------------------->
  612.                <----------------------------------------------  200
  613.      PROT P     ---------------------------------------------->
  614.                <----------------------------------------------  200
  615.      USER fred  ---------------------------------------------->
  616.                <----------------------------------------------  331
  617.      PASS pass  ---------------------------------------------->
  618.                <----------------------------------------------  230
  619.    Note 1: The order of the PBSZ/PROT pair and the USER/PASS pair (with
  620.    respect to each other) is not important (i.e., the USER/PASS can
  621.    happen prior to the PBSZ/PROT, or the server can refuse to allow a
  622.    PBSZ/PROT pair until the USER/PASS pair has happened).
  623.    Note 2: The PASS command might not be required at all (if the USER
  624.    parameter and any client identity presented provide sufficient
  625.    authentication).  The server would indicate this by issuing a '232'
  626.    reply to the USER command instead of the '331', which requests a PASS
  627.    from the client (see below).
  628.    Note 3: The AUTH command might not be the first command after the
  629.    receipt of the 220 welcome message.
  630. Ford-Hutchinson             Standards Track                    [Page 17]
  631. RFC 4217                 Securing FTP with TLS              October 2005
  632. 12.2.  Establishing a Protected Session Without a Password Request
  633.        (The TLS Authentication is Sufficient)
  634.               Client                                 Server
  635.      control          data                   data               control
  636.    ====================================================================
  637.                                                                 socket()
  638.                                                                 bind()
  639.      socket()
  640.      connect()  ----------------------------------------------> accept()
  641.                <----------------------------------------------  220
  642.      AUTH TLS   ---------------------------------------------->
  643.                <----------------------------------------------  234
  644.      TLSneg()  <----------------------------------------------> TLSneg()
  645.      PBSZ 0     ---------------------------------------------->
  646.                <----------------------------------------------  200
  647.      PROT P     ---------------------------------------------->
  648.                <----------------------------------------------  200
  649.      USER fred  ---------------------------------------------->
  650.                <----------------------------------------------  232
  651. Ford-Hutchinson             Standards Track                    [Page 18]
  652. RFC 4217                 Securing FTP with TLS              October 2005
  653. 12.3.  Establishing a Protected Session and then Clearing with the CCC
  654.        Command
  655.              Client                                 Server
  656.     control          data                   data               control
  657.   ====================================================================
  658.                                                                socket()
  659.                                                                bind()
  660.     socket()
  661.     connect()  ----------------------------------------------> accept()
  662.               <----------------------------------------------  220
  663.     AUTH TLS   ---------------------------------------------->
  664.               <----------------------------------------------  234
  665.     TLSneg()  <----------------------------------------------> TLSneg()
  666.     PBSZ 0     ---------------------------------------------->
  667.               <----------------------------------------------  200
  668.     PROT P     ---------------------------------------------->
  669.               <----------------------------------------------  200
  670.     USER fred  ---------------------------------------------->
  671.               <----------------------------------------------  232
  672.     CCC        ---------------------------------------------->
  673.               <----------------------------------------------  200
  674.     TLSshutdown()  <-------------------------------------> TLSshutdown()
  675.    - The rest of the control session continues in plaintext with
  676.      protected data transfers (due to PROT P).
  677.    Note: This has serious security issues (see Security Considerations
  678.    section) but may be useful in a firewall/NAT scenario.
  679. Ford-Hutchinson             Standards Track                    [Page 19]
  680. RFC 4217                 Securing FTP with TLS              October 2005
  681. 12.4.  A Standard Data Transfer Without Protection
  682.               Client                                 Server
  683.      control          data                   data               control
  684.    ====================================================================
  685.                       socket()
  686.                       bind()
  687.      PORT w,x,y,z,a,b ----------------------------------------->
  688.          <----------------------------------------------------- 200
  689.      STOR file ------------------------------------------------>
  690.                                              socket()
  691.                                              bind()
  692.          <----------------------------------------------------- 150
  693.                       accept() <-----------  connect()
  694.                       write()   -----------> read()
  695.                       close()   -----------> close()
  696.          <----------------------------------------------------- 226
  697. 12.5.  A Firewall-Friendly Data Transfer Without Protection
  698.               Client                                 Server
  699.      control          data                   data               control
  700.    ====================================================================
  701.      PASV -------------------------------------------------------->
  702.                                              socket()
  703.                                              bind()
  704.          <------------------------------------------ 227 (w,x,y,z,a,b)
  705.                       socket()
  706.      STOR file --------------------------------------------------->
  707.                       connect()  ----------> accept()
  708.          <-------------------------------------------------------- 150
  709.                       write()    ----------> read()
  710.                       close()    ----------> close()
  711.          <-------------------------------------------------------- 226
  712.    Note: Implementers should be aware that the connect()/accept()
  713.    function is performed prior to the receipt of the reply from the STOR
  714.    command.  This contrasts the with situation when a non-firewall-
  715.    friendly PORT is used prior to the STOR, and the accept()/connect()
  716.    is performed after the reply from the aforementioned STOR has been
  717.    dealt with.
  718. Ford-Hutchinson             Standards Track                    [Page 20]
  719. RFC 4217                 Securing FTP with TLS              October 2005
  720. 12.6.  A Standard Data Transfer with Protection
  721.               Client                                 Server
  722.      control          data                   data               control
  723.    ====================================================================
  724.                       socket()
  725.                       bind()
  726.      PORT w,x,y,z,a,b -------------------------------------------->
  727.          <-------------------------------------------------------- 200
  728.      STOR file --------------------------------------------------->
  729.                                              socket()
  730.                                              bind()
  731.          <-------------------------------------------------------- 150
  732.                       accept()  <----------  connect()
  733.                       TLSneg()  <----------> TLSneg()
  734.                       TLSwrite() ----------> TLSread()
  735.                       TLSshutdown() -------> TLSshutdown()
  736.                       close()    ----------> close()
  737.          <-------------------------------------------------------- 226
  738. 12.7.  A Firewall-Friendly Data Transfer with Protection
  739.               Client                                 Server
  740.      control          data                   data               control
  741.    ====================================================================
  742.      PASV -------------------------------------------------------->
  743.                                              socket()
  744.                                              bind()
  745.          <------------------------------------------ 227 (w,x,y,z,a,b)
  746.                       socket()
  747.      STOR file --------------------------------------------------->
  748.                       connect()  ----------> accept()
  749.          <-------------------------------------------------------- 150
  750.                       TLSneg()   <---------> TLSneg()
  751.                       TLSwrite()  ---------> TLSread()
  752.                       TLSshutdown() -------> TLSshutdown()
  753.                       close()     ---------> close()
  754.          <-------------------------------------------------------- 226
  755. Ford-Hutchinson             Standards Track                    [Page 21]
  756. RFC 4217                 Securing FTP with TLS              October 2005
  757. 13.  Discussion of the REIN Command
  758.    The REIN command, defined in [RFC-959], allows the user to reset the
  759.    state of the FTP session.  From [RFC-959]:
  760.       REINITIALIZE (REIN)
  761.          This command terminates a USER, flushing all I/O and account
  762.          information, except to allow any transfer in progress to be
  763.          completed.  All parameters are reset to the default settings
  764.          and the control connection is left open.  This is identical to
  765.          the state in which a user finds himself immediately after the
  766.          control connection is opened.  A USER command may be expected
  767.          to follow.
  768.    When this command is processed by the server, the TLS session(s) MUST
  769.    be cleared and the control and data connections revert to
  770.    unprotected, clear communications.  It MAY be acceptable to use
  771.    cached TLS sessions for subsequent connections, however, a server
  772.    MUST NOT mandate this.
  773.    If the REIN command is being used to clear a TLS session, then the
  774.    reply to the REIN command MUST be sent in a protected session prior
  775.    to the session(s) being cleared.
  776. 14.  Discussion of the STAT and ABOR Commands
  777.    The ABOR and STAT commands and the use of TCP Urgent Pointers
  778.       [RFC-959] describes the use of Telnet commands (IP and DM) and the
  779.       TCP Urgent pointer to indicate the transmission of commands on the
  780.       control channel during the execution of a data transfer.  FTP uses
  781.       the Telnet Interrupt Process and Data Mark commands in conjunction
  782.       with Urgent data to preface two commands: ABOR (Abort Transfer)
  783.       and STAT (Status request).
  784.       The Urgent Pointer was used because, in a Unix implementation, the
  785.       receipt of a TCP packet marked as Urgent would result in the
  786.       execution of the SIGURG interrupt handler.  This reliance on
  787.       interrupt handlers was necessary on systems that did not implement
  788.       select() or did not support multiple threads.  TLS does not
  789.       support the notion of Urgent data.
  790.       When TLS is implemented as a security method in FTP, the server
  791.       SHOULD NOT rely on the use of SIGURG to process input on the
  792.       control channel during data transfers.  The client MUST send all
  793.       data, including Telnet commands, across the TLS session.
  794. Ford-Hutchinson             Standards Track                    [Page 22]
  795. RFC 4217                 Securing FTP with TLS              October 2005
  796. 15.  Security Considerations
  797.    This document discusses how TLS may be used in conjunction with
  798.    [RFC-2228] to provide mechanisms for securing FTP sessions.
  799.    Discussions about security rationale and security properties are
  800.    contained within the [RFC-2228] document and are not repeated here.
  801. 15.1.  Verification of Authentication Tokens
  802.    In this section, we assume that X.509 certificates will be used for
  803.    the TLS authentication.  If some other identity token is used (e.g.,
  804.    kerberos tickets - see [RFC-2712]), then similar, mechanism-specific
  805.    considerations will need to be made.
  806. 15.1.1.  Server Certificates
  807.    - Although it is entirely an implementation decision, it is
  808.      recommended that certificates used for server authentication of the
  809.      TLS session contain the server identification information in a
  810.      similar manner to those used for http servers (see [RFC-2818]).
  811.    - It is strongly recommended that the certificate used for server
  812.      authentication of Data connections be the same certificate as that
  813.      used for the corresponding Control connection.  If different
  814.      certificates are to be used, there should be some other mechanism
  815.      that the client can use to cross-check the data and control
  816.      connection server identities.
  817.    - If Server Certificates are not used, then many of the security
  818.      benefits will not be realised.  For Example, in an anonymous
  819.      Diffie-Hellman environment, there is no server identity
  820.      authentication, so there is little protection against man-in-the-
  821.      middle attacks.
  822. 15.1.2.  Client Certificates
  823.    - Deciding which client certificates to allow and defining which
  824.      fields define what authentication information is entirely a server
  825.      implementation issue.
  826.    - However, it is strongly recommended that the certificate used for
  827.      client authentication of Data connections be the same certificate
  828.      as that used for the corresponding Control connection.  If
  829.      different certificates are to be used, there should be some other
  830.      mechanism that the server can use to cross-check the data and
  831.      control connection client identities.
  832. Ford-Hutchinson             Standards Track                    [Page 23]
  833. RFC 4217                 Securing FTP with TLS              October 2005
  834.    - If Client Certificates are not used, then many of the security
  835.      benefits will not be realised.  For Example, it would still be
  836.      possible for a malicious client to hijack a data connection.
  837. 15.2.  Addressing FTP Security Considerations [RFC-2577]
  838. 15.2.1.  Bounce Attack
  839.    A bounce attack should be harder in a secured FTP environment
  840.    because:
  841.       - The FTP server that is being used to initiate a false connection
  842.         will always be a 'server' in the TLS context.  Therefore, only
  843.         services that act as 'clients' in the TLS context could be
  844.         vulnerable.  This would be a counter-intuitive way to implement
  845.         TLS on a service.
  846.       - The FTP server would detect that the authentication credentials
  847.         for the data connection are not the same as those for the
  848.         control connection, thus the server policies could be set to
  849.         drop the data connection.
  850.       - Genuine users are less likely to initiate such attacks when the
  851.         authentication is strong, and malicious users are less likely to
  852.         gain access to the FTP server if the authentication is not
  853.         easily subverted (password guessing, network tracing, etc...)
  854. 15.2.2.  Restricting Access
  855.    This document presents a strong mechanism for solving the issue
  856.    raised in this section.
  857. 15.2.3.  Protecting Passwords
  858.    The twin solutions of strong authentication and data confidentiality
  859.    ensure that this is not an issue when TLS is used to protect the
  860.    control session.
  861. 15.2.4.  Privacy
  862.    The TLS protocol ensures data confidentiality by encryption.  Privacy
  863.    (e.g., access to download logs, user profile information, etc...) is
  864.    outside the scope of this document (and [RFC-2577] presumably).
  865. 15.2.5.  Protecting Usernames
  866.    This is not an issue when TLS is used as the primary authentication
  867.    mechanism.
  868. Ford-Hutchinson             Standards Track                    [Page 24]
  869. RFC 4217                 Securing FTP with TLS              October 2005
  870. 15.2.6.  Port Stealing
  871.    This specification will do little for the Denial of Service element
  872.    of this section; however, strong authentication on the data
  873.    connection will prevent unauthorised connections from retrieving or
  874.    submitting files.  Of course, this is only the case where strong
  875.    client authentication is being used.  If client certificates are not
  876.    used, then port stealing by a rogue client is still a problem.  If no
  877.    strong authentication is in use at all (e.g., anonymous Diffie-
  878.    Hellman), then the port stealing problem will remain.
  879. 15.2.7.  Software-Based Security Problems
  880.    Nothing in this specification will affect the discussion in this
  881.    section.
  882. 15.3.  Issues with the CCC Command
  883.    Using the CCC command can create security issues.  For a full
  884.    description, see the "CLEAR COMMAND CHANNEL (CCC)" section of
  885.    [RFC-2228].  Clients should not assume that a server will allow the
  886.    CCC command to be processed.
  887.    Server implementations may wish to refuse to process the CCC command
  888.    on a session that has not passed through some form of client
  889.    authentication (e.g., TLS client auth or FTP USER/PASS).  This can
  890.    prevent anonymous clients from repeatedly requesting AUTH TLS
  891.    followed by CCC to tie up resources on the server.
  892. 16.  IANA Considerations
  893.    {FTP-PORT} - The port assigned to the FTP control connection is 21.
  894. 17.  Other Parameters
  895.    {TLS-PARM} - The parameter for the AUTH command to indicate that TLS
  896.    is required.  To request the TLS protocol in accordance with this
  897.    document, the client MUST use 'TLS'
  898.       To maintain backward compatibility with older versions of this
  899.       document, the server SHOULD accept 'TLS-C' as a synonym for 'TLS'.
  900.       Note: [RFC-2228] states that these parameters are case-
  901.       insensitive.
  902. Ford-Hutchinson             Standards Track                    [Page 25]
  903. RFC 4217                 Securing FTP with TLS              October 2005
  904. 18.  Scalability and Limits
  905.    There are no issues other than those concerned with the ability of
  906.    the server to refuse to have a complete TLS negotiation for each and
  907.    every data connection, which will allow servers to retain throughput
  908.    whilst using cycles only when necessary.
  909. 19.  Applicability
  910.    This mechanism is generally applicable as a mechanism for securing
  911.    the FTP protocol.  It is unlikely that anonymous FTP clients or
  912.    servers will require such security (although some might like the
  913.    authentication features without the confidentiality).
  914. 20.  Acknowledgements
  915.    o  Netscape Communications Corporation for the original SSL protocol.
  916.    o  Eric Young for the SSLeay libraries.
  917.    o  University of California, Berkeley for the original
  918.       implementations of FTP and ftpd, on which the initial
  919.       implementation of these extensions were layered.
  920.    o  IETF CAT working group.
  921.    o  IETF TLS working group.
  922.    o  IETF FTPEXT working group.
  923.    o  Jeff Altman for the ABOR and STAT discussion.
  924.    o  The various people who have help author this document throughout
  925.       its protracted draft stages, namely Martin Carpenter, Eric Murray,
  926.       Tim Hudson, and Volker Wiegand.
  927. 21.  References
  928. 21.1.  Normative References
  929.    [RFC-959]  Postel, J. and J. Reynolds, "File Transfer Protocol", STD
  930.               9, RFC 959, October 1985.
  931.    [RFC-2119] Bradner, S., "Key words for use in RFCs to Indicate
  932.               Requirement Levels", BCP 14, RFC 2119, March 1997.
  933.    [RFC-2228] Horowitz, M. and S. Lunt, "FTP Security Extensions", RFC
  934.               2228, October 1997.
  935. Ford-Hutchinson             Standards Track                    [Page 26]
  936. RFC 4217                 Securing FTP with TLS              October 2005
  937.    [RFC-2246] Dierks, T. and C. Allen, "The TLS Protocol Version 1.0",
  938.               RFC 2246, January 1999.
  939.    [RFC-2389] Hethmon, P. and R. Elz, "Feature negotiation mechanism for
  940.               the File Transfer Protocol", RFC 2389, August 1998.
  941. 21.2.  Informative References
  942.    [RFC-1579] Bellovin, S., "Firewall-Friendly FTP", RFC 1579, February
  943.               1994.
  944.    [RFC-2222] Myers, J., "Simple Authentication and Security Layer
  945.               (SASL)", RFC 2222, October 1997.
  946.    [RFC-2577] Allman, M. and S. Ostermann, "FTP Security
  947.               Considerations", RFC 2577, May 1999.
  948.    [RFC-2712] Medvinsky, A. and M. Hur, "Addition of Kerberos Cipher
  949.               Suites to Transport Layer Security (TLS)", RFC 2712,
  950.               October 1999.
  951.    [RFC-2817] Khare, R. and S. Lawrence, "Upgrading to TLS Within
  952.               HTTP/1.1", RFC 2817, May 2000.
  953.    [RFC-2818] Rescorla, E., "HTTP Over TLS", RFC 2818, May 2000.
  954.    [RFC-3207] Hoffman, P., "SMTP Service Extension for Secure SMTP over
  955.               Transport Layer Security", RFC 3207, February 2002.
  956. Ford-Hutchinson             Standards Track                    [Page 27]
  957. RFC 4217                 Securing FTP with TLS              October 2005
  958. Contributors
  959.    Tim Hudson
  960.    RSA Data Security
  961.    Australia Pty Ltd
  962.    Phone: +61 7 3227 4444
  963.    EMail: tjh@rsasecurity.com.au
  964.    Volker Wiegand
  965.    SuSE Linux
  966.    EMail: wiegand@suse.de
  967.    Martin Carpenter
  968.    Verisign Ltd
  969.    EMail: mcarpenter@verisign.com
  970.    Eric Murray
  971.    Wave Systems Inc.
  972.    EMail: ericm@lne.com
  973. Author's Address
  974.    Paul Ford-Hutchinson
  975.    IBM UK Ltd
  976.    PO Box 31
  977.    Birmingham Road
  978.    Warwick
  979.    United Kingdom
  980.    Phone: +44 1926 462005
  981.    EMail: rfc4217@ford-hutchinson.com
  982. Ford-Hutchinson             Standards Track                    [Page 28]
  983. RFC 4217                 Securing FTP with TLS              October 2005
  984. Full Copyright Statement
  985.    Copyright (C) The Internet Society (2005).
  986.    This document is subject to the rights, licenses and restrictions
  987.    contained in BCP 78, and except as set forth therein, the authors
  988.    retain all their rights.
  989.    This document and the information contained herein are provided on an
  990.    "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
  991.    OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET
  992.    ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED,
  993.    INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
  994.    INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
  995.    WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  996. Intellectual Property
  997.    The IETF takes no position regarding the validity or scope of any
  998.    Intellectual Property Rights or other rights that might be claimed to
  999.    pertain to the implementation or use of the technology described in
  1000.    this document or the extent to which any license under such rights
  1001.    might or might not be available; nor does it represent that it has
  1002.    made any independent effort to identify any such rights.  Information
  1003.    on the procedures with respect to rights in RFC documents can be
  1004.    found in BCP 78 and BCP 79.
  1005.    Copies of IPR disclosures made to the IETF Secretariat and any
  1006.    assurances of licenses to be made available, or the result of an
  1007.    attempt made to obtain a general license or permission for the use of
  1008.    such proprietary rights by implementers or users of this
  1009.    specification can be obtained from the IETF on-line IPR repository at
  1010.    http://www.ietf.org/ipr.
  1011.    The IETF invites any interested party to bring to its attention any
  1012.    copyrights, patents or patent applications, or other proprietary
  1013.    rights that may cover technology that may be required to implement
  1014.    this standard.  Please address the information to the IETF at ietf-
  1015.    ipr@ietf.org.
  1016. Acknowledgement
  1017.    Funding for the RFC Editor function is currently provided by the
  1018.    Internet Society.
  1019. Ford-Hutchinson             Standards Track                    [Page 29]