Home > Backend Development > Golang > Here are a few title options that fit the question-answer format you requested: Option 1 (Focus on the problem): * Azure SQL Database v12 Upgrade: Why am I getting TLS Handshake Errors? Option 2 (F

Here are a few title options that fit the question-answer format you requested: Option 1 (Focus on the problem): * Azure SQL Database v12 Upgrade: Why am I getting TLS Handshake Errors? Option 2 (F

Mary-Kate Olsen
Release: 2024-10-26 23:48:31
Original
905 people have browsed it

Here are a few title options that fit the question-answer format you requested:

Option 1 (Focus on the problem):
* Azure SQL Database v12 Upgrade: Why am I getting TLS Handshake Errors? 

Option 2 (Focus on the resolution):
* How to Fix TLS Handshake Err

TLS Handshake Error: Azure SQL Database Upgrade to v12 Impacts Connections

An Azure SQL Database upgrade to version 12 (v12) has caused connectivity issues for some applications, resulting in this error:

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

Cause

The error occurs because the certificate presented by the Azure SQL Database is not valid for the server name specified in the connection string. This is due to a change in the way v12 handles certificate validation.

Resolution

To resolve the issue, modify the connection string to include the following parameters:

TrustServerCertificate=True;
hostNameInCertificate=*.database.windows.net;
Copy after login

Additional Notes

  • The Azure portal suggests setting TrustServerCertificate=False and leaving hostNameInCertificate empty. However, for some applications, this may not work.
  • Trusted connections should not be used.
  • Encryption should be enabled.

The above is the detailed content of Here are a few title options that fit the question-answer format you requested: Option 1 (Focus on the problem): * Azure SQL Database v12 Upgrade: Why am I getting TLS Handshake Errors? Option 2 (F. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template