title: Using Indy 10 IdHTTP with TLS 1.2
body: <p>Im using Delphi XE2 with Indy 10.5.8.0</p>
  
  <p>Currently i need to change a connection to one of our server to use only TLS 1.2, at the moment we are using TLS 1.0</p>
  
  <p>As handler for IdHTTP , IdSSLIOHandlerSocketOpenSSL is being used.</p>
  
  <p>I tried changing the Method to sslvTLSv1_2 and it does not work as the connection gives the next error:
  "Error connecting with SSL. error:1409442E:SSL routine:SSL3_READ_BYTES:tlsv 1 alert protocol version"</p>
  
  <p>Im using the Default Cipher list, not sure if i need any specific Cipher (Currently asking to Server provider to know what cipher they use)</p>
  
  <p>this is the configuration of Handler:</p>
  
  <p><a href="https://i.stack.imgur.com/smKmE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/smKmE.png" alt="SSLIOHandler Config"></a></p>
  
  <p>Im not used to SSL connections as before this it was working with default setting and all was OK.</p>
  
  <p>I tried to check WireShark and in both cases (when method is sslvTLSv1_2 or sslvTLSv1) i get the same error pointing to tls version 1.0.</p>
  
  <p>Method sslvTLSv1:</p>
  
  <p><a href="https://i.stack.imgur.com/cpt1v.png" rel="noreferrer"><img src="https://i.stack.imgur.com/cpt1v.png" alt="Method sslvTLSv1"></a></p>
  
  <p>Method sslvTLSv1_2:</p>
  
  <p><a href="https://i.stack.imgur.com/cLWa0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/cLWa0.png" alt="enter image description here"></a></p>
  
  <p>Please point me in the right direction if im missing something.</p>
  
  <p>Thank you in advance for all the help provided.</p>
  
  <p>P.S : Just got a response from the server provider and they are using AES_128_GCM as their Cipher, is it in the default Cipher list?</p>
  
  <p>WireShark>Client Hello package:</p>
  
  <p><a href="https://i.stack.imgur.com/sQgqh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/sQgqh.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/QuHPu.png" rel="noreferrer"><img src="https://i.stack.imgur.com/QuHPu.png" alt="enter image description here"></a></p>