User-api-key returning error on generating new key

Hi, I’m developing an app that wants to access Discourse through the user api. Everything works fine up until the point where Discourse should redirect with the newly generated user api key.

Error message in the API logs: OpenSSL::PKey::RSAError (data too large for key size)

This is the request leading up to the error:

Should I pass another type of public key to user-api-key/new or how could I resolve this?

1 Like

Solved: used a 1024 bit key instead of 512.