mirror of
https://github.com/warp-tech/warpgate.git
synced 2024-11-13 03:18:48 +08:00
fixed RSA client key auth - #20
This commit is contained in:
parent
d771fa09e4
commit
82dd327581
1 changed files with 1 additions and 0 deletions
|
@ -102,6 +102,7 @@ impl ConfigProvider for FileConfigProvider {
|
||||||
let mut base64_bytes = BASE64_MIME.encode(public_key_bytes);
|
let mut base64_bytes = BASE64_MIME.encode(public_key_bytes);
|
||||||
base64_bytes.pop();
|
base64_bytes.pop();
|
||||||
base64_bytes.pop();
|
base64_bytes.pop();
|
||||||
|
let base64_bytes = base64_bytes.replace("\r\n", "");
|
||||||
|
|
||||||
let client_key = format!("{} {}", kind, base64_bytes);
|
let client_key = format!("{} {}", kind, base64_bytes);
|
||||||
debug!(username = &user.username[..], "Client key: {}", client_key);
|
debug!(username = &user.username[..], "Client key: {}", client_key);
|
||||||
|
|
Loading…
Reference in a new issue