title: Azure SQL Database error TLS Handshake failed since v12 upgrade
body: <p>I receive this error since this morning, new v12 updated server / Azure SQL Database:</p>
  
  <blockquote>
    <p>TLS Handshake failed: x509: certificate is valid for
    tr12.northcentralus1-a.worker.database.windows.net,
    *.tr12.northcentralus1-a.worker.database.windows.net, not [server-name].database.windows.net</p>
  </blockquote>
  
  <p>Locally I have no problem connecting to the Azure SQL database. On Azure Web App the connection cannot be established.</p>
  
  <p>Same connection string as local - was working fine before v12 update.</p>
  
  <p>I'm using this SQL driver <code>github.com/denisenkom/go-mssqldb/</code></p>
  
  <p>Any pointer, don't believe I should change the connection string? Why it's working on local and not on Azure web app.</p>
  
  <p>Edit 1: Just tried to replace <code>[server-name].database.windows.net</code> with the tr12... but tcp connection cannot be established.</p>
  
  <p>Edit 2: Here's the connection string if it can help, bottom line, why it's working locally, same driver package version, I'm building executable locally and deploying via FTP, so not using Kudo deployment for this app. Was working A1 until Azure auto-upgraded to v12.</p>
  
  <blockquote>
    <p>Server=[server-name].database.windows.net;Port=1433;Database=[dbname];User
    ID=[user];Password=[pass];Trusted_Connection=False;Encrypt=True;Connection
    Timeout=30;</p>
  </blockquote>
  
  <p>Should trusted connection be true? or Encryption false? Will try changing those to see....</p>
  
  <p>Edit 3: I've look at the connection string from Azure portal, and v12 seems to have this new parameters: <code>TrustServerCertificate=False</code> but no chance, did not fixed the issue</p>