We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cd82174 + 4a0dc16 commit 5f69066Copy full SHA for 5f69066
src/Client.php
@@ -137,9 +137,11 @@ private static function parseJwk($jwk)
137
$seq->addChild(new \FG\ASN1\Universal\Integer(gmp_strval($e)));
138
$pkey = new \FG\X509\PublicKey(bin2hex($seq->getBinary()));
139
140
+ $encoded = base64_encode($pkey->getBinary());
141
+
142
return new \Lcobucci\JWT\Signer\Key(
143
"-----BEGIN PUBLIC KEY-----\n" .
- base64_encode($pkey->getBinary()) . "\n" .
144
+ chunk_split($encoded, 64, "\n") .
145
"-----END PUBLIC KEY-----\n"
146
);
147
}
0 commit comments