title: How to enable TLS 1.2 for outbound request from windows server 2012 R2?
body: <p>I need to enable outbound request from windows server 2012 R2 from .net application (build in 4.0 version). </p>
  
  <p>I've followed everything as stated in this <a href="http://www.processio.com/enable-outbound-tls-1-1-1-2-windows-server/" rel="nofollow noreferrer">link</a>
  But still I'm receiving the following error:</p>
  
  <blockquote>
    <p>System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.ComponentModel.Win32Exception: The client and server cannot communicate, because they do not possess a common algorithm at System.Net.SSPIWrapper.AcquireCredentialsHandle(SSPIInterface SecModule, String package, CredentialUse intent, SecureCredential scc) at System.Net.Security.SecureChannel.AcquireCredentialsHandle(CredentialUse credUsage, SecureCredential&amp; secureCredential) at System.Net.Security.SecureChannel.AcquireClientCredentials(Byte[]&amp; thumbPrint) at System.Net.Security.SecureChannel.GenerateToken(Byte[] input, Int32 offset, Int32 count, Byte[]&amp; output) at System.Net.Security.SecureChannel.NextMessage(Byte[] incoming, Int32 offset, Int32 count) at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) at System.Net.TlsStream.CallProcessAuthentication(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.ConnectStream.WriteHeaders(Boolean async) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.GetResponse()</p>
  </blockquote>
  
  <p>I'm facing this error because we are using checkout payment gateway and they stopped taking any request below TLS 1.2 after that we are facing this issue.</p>
  
  <p>Here is part of my registry key sample:</p>
  
  <p><a href="https://i.stack.imgur.com/BTFb7.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BTFb7.jpg" alt="enter image description here"></a></p>
  
  <p>Please suggest me on how may I solve this issue. Thanks in advance.</p>