summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2025-11-11 10:52:39 +0000
committerGreg Roach <greg@subaqua.co.uk>2025-11-11 10:52:39 +0000
commit54470c83fbc4c602202ef18766abda60479fa488 (patch)
tree97acc9adb87fa22615a669e1f26695149ffa24a2
parentdcadb037428be824be29f6129a55c8fff6d92f1e (diff)
downloadwebtrees-54470c83fbc4c602202ef18766abda60479fa488.tar.gz
webtrees-54470c83fbc4c602202ef18766abda60479fa488.tar.bz2
webtrees-54470c83fbc4c602202ef18766abda60479fa488.zip
Fix: #5246 - SQL-Server enables encryption by default, so trust self-signed certs
-rw-r--r--app/DB.php19
1 files changed, 10 insertions, 9 deletions
diff --git a/app/DB.php b/app/DB.php
index 8875399562..e2c5e486f8 100644
--- a/app/DB.php
+++ b/app/DB.php
@@ -110,15 +110,16 @@ class DB extends Manager
$capsule = new self();
$capsule->addConnection([
- 'driver' => $driver,
- 'host' => $host,
- 'port' => $port,
- 'database' => $database,
- 'username' => $username,
- 'password' => $password,
- 'prefix' => $prefix,
- 'prefix_indexes' => true,
- 'options' => $options,
+ 'driver' => $driver,
+ 'host' => $host,
+ 'port' => $port,
+ 'database' => $database,
+ 'username' => $username,
+ 'password' => $password,
+ 'prefix' => $prefix,
+ 'prefix_indexes' => true,
+ 'options' => $options,
+ 'trust_server_certificate' => true, // For SQL-Server - #5246
]);
$capsule->setAsGlobal();