mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Also accept an RSA key with crlf
This commit is contained in:
@@ -21,6 +21,12 @@ class CryptKeyTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
$this->assertEquals('file://' . $keyFile, $key->getKeyPath());
|
||||
$this->assertEquals('secret', $key->getPassPhrase());
|
||||
|
||||
$keyFile = __DIR__ . '/Stubs/public.key.crlf';
|
||||
$key = new CryptKey($keyFile, 'secret');
|
||||
|
||||
$this->assertEquals('file://' . $keyFile, $key->getKeyPath());
|
||||
$this->assertEquals('secret', $key->getPassPhrase());
|
||||
}
|
||||
|
||||
public function testKeyFileCreation()
|
||||
|
||||
Reference in New Issue
Block a user