How to encrypt payload using jwe and sign the encrypted payload with jws in ruby?

i have to use alg: ‘RSA-OAEP’, enc: ‘A256GCM’ in jwe and want to sign encrypted payload with alg :PS256…i have certificate and private key as well