Repository navigation
Commit d7d3a95
committed
Skip server certificate verification for passwordless MariaDB connections
MariaDB 11.4 enables TLS server certificate verification by default. For a
passwordless connection the auto-generated self-signed certificate cannot be
verified, so MariaDB disables verification and prints a warning to STDERR. That
warning fails the Behat tests on MariaDB and is noise for users running `wp db`
commands.
Explicitly pass `--skip-ssl-verify-server-cert` for passwordless MariaDB
connections so the opt-out is intentional and the warning goes away. Enabling
verification instead would force certificate checks that break older clients and
self-signed or untrusted certificates, so password-protected connections are
deliberately left untouched.
Both `ssl-verify-server-cert` and its `skip-` variant are added to the allowed
MySQL client options so the behaviour can be overridden per invocation.1 parent 8a9a130 commit d7d3a95
2 files changed
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1988 | 1988 | | |
1989 | 1989 | | |
1990 | 1990 | | |
| 1991 | + | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
1991 | 2003 | | |
1992 | 2004 | | |
1993 | 2005 | | |
| |||
2232 | 2244 | | |
2233 | 2245 | | |
2234 | 2246 | | |
| 2247 | + | |
2235 | 2248 | | |
2236 | 2249 | | |
2237 | 2250 | | |
| |||
2243 | 2256 | | |
2244 | 2257 | | |
2245 | 2258 | | |
| 2259 | + | |
2246 | 2260 | | |
2247 | 2261 | | |
2248 | 2262 | | |
| |||
0 commit comments