title: Connect to FTP TLS 1.2 Server with ftplib
body: <p>I try to connect to a FTP Server which only supports TLS 1.2
  Using Python 3.4.1</p>
  
  <p>My Code:</p>
  
  <pre><code>import ftplib
  import ssl
  ftps = ftplib.FTP_TLS()
  
  ftps.ssl_version = ssl.PROTOCOL_TLSv1_2
  print (ftps.connect('108.61.166.122',31000))
  print(ftps.login('test','test123'))
  ftps.prot_p()
  print (ftps.retrlines('LIST'))
  </code></pre>
  
  <p>Error on client side:</p>
  
  <pre><code>ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:598)
  </code></pre>
  
  <p>Error on server side:</p>
  
  <pre><code>  Failed TLS negotiation on control channel, disconnected. (SSL_accept(): 
    error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol)
  </code></pre>
  
  <p>The credentials in the example are working for testing.</p>