Skip to content

Commit 7fdcfa1

Browse files
committed
better error message
1 parent 23b3fc0 commit 7fdcfa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Library/KeyManagement/KeyConverter/KeyConverter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ private static function loadKeyFromPEM(string $pem, ?string $password = null): a
219219
$res = openssl_pkey_get_public($pem);
220220
}
221221
if ($res === false) {
222-
throw new InvalidArgumentException('Unable to load the key.');
222+
throw new InvalidArgumentException('Unable to load the key. Error: ' . openssl_error_string());
223223
}
224224

225225
$details = openssl_pkey_get_details($res);

0 commit comments

Comments
 (0)