Merge pull request #805 from raarts/Accept-RSA-key-with-crlf-v2

Also accept an RSA key with crlf
This commit is contained in:
Andrew Millington authored and GitHub committed 2018-01-23 22:24:52 +00:00
commit eb9cde5ab7
6 files changed
+40 -2

No files matched your search

+8
View File
@@ -33,5 +33,13 @@ class CryptKeyTest extends TestCase
'file://' . sys_get_temp_dir() . '/' . sha1($keyContent) . '.key',
$key->getKeyPath()
);
$keyContent = file_get_contents(__DIR__ . '/Stubs/private.key.crlf');
$key = new CryptKey($keyContent);
$this->assertEquals(
'file://' . sys_get_temp_dir() . '/' . sha1($keyContent) . '.key',
$key->getKeyPath()
);
}
}