fixed RSA client key auth - #20

This commit is contained in:
Eugene Pankov 2022-06-16 18:52:55 +02:00
parent d771fa09e4
commit 82dd327581
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4

View file

@ -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);