【发布时间】:2016-12-14 11:08:38
【问题描述】:
我有一个在 Azure 上作为 WebJob 运行的 Java 应用程序。此作业尝试连接到我的 Azure SQL Server。如果加密开启,我会收到连接错误:
The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "java.security.cert.CertificateException: Failed to validate the server name in a certificate during Secure Sockets Layer (SSL) initialization.".
如果encrypt = false 连接正常。
Azure 中资源之间的通信不应该一直加密吗?
另外,如果我在本地运行应用程序,数据库连接以加密模式成功连接。
【问题讨论】:
标签: java azure azure-sql-database azure-webjobs