But when I go to send the authorization request I get an error about not being able to decode the public key. Any suggestions? Am I generating the keys correctly?
Regarding ECC, unfortunately this is a limitation in the backend and it only accepts RSA. It is something that we are looking at, but nothing committed yet.
I think the client side key-pair will be generated by keygen-client script. At this point this script only generates key pair using RSA algorithm for master branch or 3.2.x branch.
But now, the server side release note states there added ED25519 and ECDSA support.
add support for ED25519 and ECDSA public keys in auth requests ([MEN-3728])
If it helps, I have been using ECDSA secp384r1 with my mender 2.4.1 server for a year and a half now, albeit I manage the keys/certs myself rather than using the scripts. So there is support in the server for it now.