Merge branch '1.0'

This commit is contained in:
terrafrost 2021-09-28 09:00:11 -05:00
commit 0e6f4247f2

View File

@ -227,8 +227,8 @@ abstract class OpenSSH
$key = Strings::packSSH2('sssNss', 'none', 'none', '', 1, $publicKey, $paddedKey);
$key = "openssh-key-v1\0$key";
return "-----BEGIN OPENSSH PRIVATE KEY-----\r\n" .
chunk_split(Base64::encode($key), 70) .
"-----END OPENSSH PRIVATE KEY-----";
return "-----BEGIN OPENSSH PRIVATE KEY-----\n" .
chunk_split(Base64::encode($key), 70, "\n") .
"-----END OPENSSH PRIVATE KEY-----\n";
}
}