mirror of
https://github.com/shlinkio/shlink.git
synced 2026-08-09 12:38:04 -05:00
fix: mysql tls not being negotiated with DB_USE_ECRYPTION=true
This commit is contained in:
@@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com), and this project adheres to [Semantic Versioning](https://semver.org).
|
||||
|
||||
## [Unreleased]
|
||||
### Added
|
||||
* *Nothing*
|
||||
|
||||
### Changed
|
||||
* *Nothing*
|
||||
|
||||
### Deprecated
|
||||
* *Nothing*
|
||||
|
||||
### Removed
|
||||
* *Nothing*
|
||||
|
||||
### Fixed
|
||||
* [#2625](https://github.com/shlinkio/shlink/issues/2625) Fix MySQL connections failing with `[3159] Connections using insecure transport are prohibited` when `DB_USE_ENCRYPTION=true` against a server requiring TLS.
|
||||
|
||||
|
||||
## [5.1.3] - 2026-06-16
|
||||
### Added
|
||||
* *Nothing*
|
||||
|
||||
@@ -36,7 +36,8 @@ return (static function (): array {
|
||||
'maria', 'mysql' => !$useEncryption
|
||||
? []
|
||||
: [
|
||||
1014 => false, // PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT: Trust any certificate
|
||||
Pdo\Mysql::ATTR_SSL_CA => '', // Require connections to be encrypted
|
||||
Pdo\Mysql::ATTR_SSL_VERIFY_SERVER_CERT => false, // Allow any certificate
|
||||
],
|
||||
'postgres' => !$useEncryption
|
||||
? []
|
||||
|
||||
Reference in New Issue
Block a user