Skip to content

php-jwk-to-pem: v2.0.0

Latest

Choose a tag to compare

@acodercat acodercat released this 23 Nov 13:38
· 1 commit to master since this release
b4f01e9

Added

  • Support for EC public keys on the P-256, P-384, P-521 and secp256k1 curves.
  • Support for OKP public keys on the Ed25519 and Ed448 curves.

Changed

  • Breaking: PHP 8.1 or later is required.
  • Breaking: phpseclib ^4.0.4 is required, replacing phpseclib 3.
  • Breaking: Errors raised by phpseclib while loading a key are now thrown as JWKConverterException.
  • Exception messages now name the missing or invalid parameter.

Removed

  • Breaking: JWKConverter::multipleToPEM(). Call toPEM() for each key instead.

Fixed

  • The e parameter is now decoded as base64url. Values containing - or _ were decoded incorrectly.
  • Parameters that decode to "0" are no longer rejected as invalid base64.
  • Non-string parameters now throw JWKConverterException instead of a TypeError.