Skip to content

Commit

Permalink
Add setTrustServerCertificate=true
Browse files Browse the repository at this point in the history
  • Loading branch information
muskan124947 committed Feb 12, 2025
1 parent a7c850a commit 9797f8b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1382,6 +1382,7 @@ public void testManagedIdentityWithEncryptStrict() {
ds.setURL(connectionUrl);
ds.setAuthentication("ActiveDirectoryMSI");
ds.setEncrypt("strict");
ds.setTrustServerCertificate(true);

try (Connection con = ds.getConnection()) {
assertNotNull(con);
Expand Down

0 comments on commit 9797f8b

Please sign in to comment.