From 4dfedcdc86ab68b414f2633f32615694c9feb6b8 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Wed, 19 Feb 2020 09:56:25 +0100 Subject: [PATCH] MySQL: Allow public key retrieval (#5909) --- .../jabref/gui/shared/SharedDatabaseLoginDialogViewModel.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/jabref/gui/shared/SharedDatabaseLoginDialogViewModel.java b/src/main/java/org/jabref/gui/shared/SharedDatabaseLoginDialogViewModel.java index 23e96e4d1c8..8fb16ee9f87 100644 --- a/src/main/java/org/jabref/gui/shared/SharedDatabaseLoginDialogViewModel.java +++ b/src/main/java/org/jabref/gui/shared/SharedDatabaseLoginDialogViewModel.java @@ -118,6 +118,8 @@ public boolean openDatabase() { .setUser(user.getValue()) .setPassword(password.getValue()) .setUseSSL(useSSL.getValue()) + // Authorize client to retrieve RSA server public key when serverRsaPublicKeyFile is not set (for sha256_password and caching_sha2_password authentication password) + .setAllowPublicKeyRetrieval(true) .setKeyStore(keystore.getValue()) .setServerTimezone(serverTimezone.getValue()) .createDBMSConnectionProperties();