According to [RFC 7518](https://tools.ietf.org/html/rfc7518#section-3.4) 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.
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.