Closed Kenneth202212 closed 1 month ago
MS Changed their most recent SQLServer component for PHP to fail on SQL's default self-signed certificate unless you say TrustServerCertificate true. Unfortunately there is no current means to pass that value through the Joomla framework
`
$option = array(); $option['driver'] = 'sqlsrv'; $option['host'] = '(host)'; $option['user'] = '(user)'; $option['password'] = '(pass) '; $option['database'] = '(db-name)'; $option['trust_certificate'] = true; $db = (new Joomla\Database\DatabaseFactory)->getDriver('sqlsrv', $option); $db->setQuery('SELECT COUNT(*) FROM MyTable'); echo 'Results: ' . (int) $db->loadResult();`
Summary of Changes
MS Changed their most recent SQLServer component for PHP to fail on SQL's default self-signed certificate unless you say TrustServerCertificate true. Unfortunately there is no current means to pass that value through the Joomla framework
Testing Instructions
`
Documentation Changes Required