title: Delphi with Indy10: How to auto negotiate highest TLS level available?
body: <p>Our undeerstanding is that setting:</p>
  
  <p>SSL Version: sslvSSLv23</p>
  
  <p>Will cause the highest avail TLS version to be used.</p>
  
  <p>However, looking at the SSL trace, this does not appear to be happening.</p>
  
  <p>Observe these calls to the same server:</p>
  
  <p>SSL Version: sslvTLSv1_2  -- I get a TLS 1.2 connection</p>
  
  <pre><code>Resolving hostname #####.
  Connecting to ############.
  SSL status: "before/connect initialization"
  SSL status: "before/connect initialization"
  SSL status: "SSLv3 write client hello A"
  SSL status: "SSLv3 read server hello A"
  SSL status: "SSLv3 read server certificate A"
  SSL status: "SSLv3 read server done A"
  SSL status: "SSLv3 write client key exchange A"
  SSL status: "SSLv3 write change cipher spec A"
  SSL status: "SSLv3 write finished A"
  SSL status: "SSLv3 flush data"
  SSL status: "SSLv3 read finished A"
  SSL status: "SSL negotiation finished successfully"
  SSL status: "SSL negotiation finished successfully"
  Cipher: name = AES128-SHA256; 
  description = AES128-SHA256           
  TLSv1.2 Kx=RSA      
  Au=RSA  Enc=AES(128)  
  Mac=SHA256
  ; bits = 128; version = TLSv1/SSLv3; 
  </code></pre>
  
  <p>Hitting the same server, but set to: SSL Version: sslvSSLv23
  I would expect a TLS 1.2 connection. Well. actually I would expect the same connection as above. But observe, I end up with TLS 1.0:</p>
  
  <pre><code>Resolving hostname #####.
  Connecting to ###.
  SSL status: "before/connect initialization"
  SSL status: "before/connect initialization"
  SSL status: "SSLv2/v3 write client hello A"
  SSL status: "SSLv3 read server hello A"
  SSL status: "SSLv3 read server certificate A"
  SSL status: "SSLv3 read server done A"
  SSL status: "SSLv3 write client key exchange A"
  SSL status: "SSLv3 write change cipher spec A"
  SSL status: "SSLv3 write finished A"
  SSL status: "SSLv3 flush data"
  SSL status: "SSLv3 read finished A"
  SSL status: "SSL negotiation finished successfully"
  SSL status: "SSL negotiation finished successfully"
  Cipher: name = AES128-SHA; description = AES128-SHA 
  SSLv3 Kx=RSA      Au=RSA  Enc=AES(128)  Mac=SHA1
  ; 
  bits = 128; version = TLSv1/SSLv3; 
  </code></pre>
  
  <p>What is the missing , negotiate highest, magic?</p>