diff --git a/src/Library/KeyManagement/KeyConverter/KeyConverter.php b/src/Library/KeyManagement/KeyConverter/KeyConverter.php index 6227d2ef..05c277f8 100644 --- a/src/Library/KeyManagement/KeyConverter/KeyConverter.php +++ b/src/Library/KeyManagement/KeyConverter/KeyConverter.php @@ -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);