Skip to content

Commit 907a5a1

Browse files
committed
Bug fixed
EC key not correctly generated
1 parent 4e6bc5f commit 907a5a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Component/KeyManagement/JWKFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ private static function createECKeyUsingOpenSSL(string $curve): array
118118
return [
119119
'kty' => 'EC',
120120
'crv' => $curve,
121-
'x' => Base64Url::encode(\bin2hex($details['ec']['x'])),
122-
'y' => Base64Url::encode(\bin2hex($details['ec']['y'])),
123-
'd' => Base64Url::encode(\bin2hex($details['ec']['d'])),
121+
'x' => Base64Url::encode($details['ec']['x']),
122+
'y' => Base64Url::encode($details['ec']['y']),
123+
'd' => Base64Url::encode($details['ec']['d']),
124124
];
125125
}
126126

0 commit comments

Comments
 (0)