From 82dd3275818fd0bd10f0347bd12dd9674b1c4025 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Thu, 16 Jun 2022 18:52:55 +0200 Subject: [PATCH] fixed RSA client key auth - #20 --- warpgate-common/src/config_providers/file.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/warpgate-common/src/config_providers/file.rs b/warpgate-common/src/config_providers/file.rs index 27a57d6..2ae4e30 100644 --- a/warpgate-common/src/config_providers/file.rs +++ b/warpgate-common/src/config_providers/file.rs @@ -102,6 +102,7 @@ impl ConfigProvider for FileConfigProvider { let mut base64_bytes = BASE64_MIME.encode(public_key_bytes); base64_bytes.pop(); base64_bytes.pop(); + let base64_bytes = base64_bytes.replace("\r\n", ""); let client_key = format!("{} {}", kind, base64_bytes); debug!(username = &user.username[..], "Client key: {}", client_key);