We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f542cc commit 0c0df1aCopy full SHA for 0c0df1a
test/integration/test-ssl.js
@@ -22,7 +22,12 @@ describe('ssl', function() {
22
//TLSv1.2 is supported on windows only since MariaDB 10.4
23
//TLSv1.2 is supported in MySQL only since 8.0 (unix/windows)
24
//so if testing with Node.js 12, force possible TLS1.1
25
- tls.DEFAULT_MIN_VERSION = 'TLSv1.1';
+ if (!shareConn.info.isMariaDB() && !shareConn.info.hasMinVersion(5, 7, 0)) {
26
+ //MySQL 5.5 and MySQL 5.6 needs TLSv1
27
+ tls.DEFAULT_MIN_VERSION = 'TLSv1';
28
+ } else {
29
+ tls.DEFAULT_MIN_VERSION = 'TLSv1.1';
30
+ }
31
}
32
33
if (process.env.TEST_SSL_CA_FILE) {
0 commit comments