Skip to content

Commit

Permalink
better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jasverix authored and Spomky committed May 27, 2024
1 parent 9627e5d commit f34d350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Library/KeyManagement/KeyConverter/KeyConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ private static function loadKeyFromPEM(string $pem, ?string $password = null): a
$res = openssl_pkey_get_public($pem);
}
if ($res === false) {
throw new InvalidArgumentException('Unable to load the key.');
throw new InvalidArgumentException('Unable to load the key. Error: ' . openssl_error_string());
}

$details = openssl_pkey_get_details($res);
Expand Down

0 comments on commit f34d350

Please sign in to comment.