jwt
jwt copied to clipboard
For ES256, ES384, ES512 keytype should be OPENSSL_KEYTYPE_EC
According to RFC 7518 the key type should be a ECDSA.
It's also recommended to check the curve of the key. See https://github.com/namshi/jose/blob/master/src/Namshi/JOSE/Signer/OpenSSL/ECDSA.php for more details.