From 8e1b0e4fef4830c49a7efa5606adb9051b030752 Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Sun, 2 Feb 2020 21:03:19 +0100 Subject: [PATCH] Allow public key retrieval --- .../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();