fusionauth-issues icon indicating copy to clipboard operation
fusionauth-issues copied to clipboard

[Bug]: Key PEM format not validated without `key.algorithm`

Open spwitt opened this issue 3 weeks ago • 0 comments

What happened?

  1. Use /api/key/import to import a key
  2. Only specify key.type and key.publicKey on the request where the public key PEM is for a different key type (e.g. key.type is RSA but the PEM is for an EC key)
  3. The API request succeeds, but the key cannot be used

Version

1.61.2

Affects Versions

No response

Alternatives / Workarounds

No response

spwitt avatar Dec 17 '25 15:12 spwitt