Skip to content

Commit b62afb2

Browse files
committed
Fix for Bug#98699 (Bug#30932850), Allow empty keyStore file for keyStoreTypes that do not require files.
Change-Id: I589e94038c3184564adb05d285c1de76e86ebda5
1 parent 1470742 commit b62afb2

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
Version 9.5.0
55

6+
- Fix for Bug#98699 (Bug#30932850), Allow empty keyStore file for keyStoreTypes that do not require files.
7+
Thanks to Kolbe Kegel for his contribution.
8+
69
- Fix for Bug#118938 (Bug#38396227), DatabaseMetaDataInformationSchema#getSchemas has a bug.
710

811
- Fix for Bug#99292 (Bug#31195955), Contribution: Support Windows time zone \'Coordinated Universal Time\'.

src/main/core-impl/java/com/mysql/cj/protocol/ExportControlled.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,13 @@ public SSLContext build() {
557557
}
558558
}
559559
}
560+
} else {
561+
// Not all KeyManagers require a file-based keystore. If clientCertificateKeyStoreUrl is empty, still try to create a functional KeyManager.
562+
try {
563+
kms = kmf.getKeyManagers();
564+
} catch (IllegalStateException e) {
565+
// Ignore. No KeyManager shall be used.
566+
}
560567
}
561568

562569
InputStream trustStoreIS = null;

0 commit comments

Comments
 (0)