Azure SQL Database error TLS Handshake failed since v12 upgrade

前端 未结 1 350
情歌与酒
情歌与酒 2021-01-19 18:12

I receive this error since this morning, new v12 updated server / Azure SQL Database:

TLS Handshake failed: x509: certificate is valid for tr12.nort

1条回答
  •  攒了一身酷
    2021-01-19 18:34

    Based on this closed issue I changed TrustServerCertificate from False to True and added this parameter hostNameInCertificate to the connection string and it is working now:

    https://github.com/denisenkom/go-mssqldb/issues/55

    TrustServerCertificate=True;hostNameInCertificate=*.database.windows.net;

    Azure portal suggests to have TrustServerCertificate=False and no hostNameInCertificate.

    0 讨论(0)
提交回复
热议问题