Mule 4 のデータベースコネクタを使用して Microsoft SQL Server に接続するときに、次のエラーが発生します。
java.sql.SQLException:Cannot get connection for URL jdbc:sqlserver://host:1433;databaseName=testDB: "encrypt" property is set to "true" and "trustServerCertificate" property is set to "false" but the driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption:Error:PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target (java.sql.SQLException:URL jdbc:sqlserver://host:1433;databaseName=testDB に接続できません: 「encrypt」プロパティは「true」、「trustServerCertificate」プロパティは「false」に設定されているものの、ドライバーが Secure Sockets Layer (SSL) 暗号化を使用して SQL Server への安全な接続を確立できません: エラー: PKIX パスの構築に失敗しました: sun.security.provider.certpath.SunCertPathBuilderException: 要求されたターゲットへの有効な証明書パスが見つかりません)
SQL Server インスタンスの TLS 証明書は、JVM のデフォルトのトラストストアまたは trustStore 接続プロパティで設定されたトラストストアで信頼されません。
この問題に対しては次の 2 つのソリューションがあります。
001117544

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.